Download the PHP package kevinkl3/neteller without Composer

On this page you can find all versions of the php package kevinkl3/neteller. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package neteller

NOTE: This is a fork from GrandMasterX/neteller

NETELLER REST API PHP Library

Introduction

The NETELLER PHP Library provides PHP developers an easy way to integrate the NETELLER REST API. It is a client library which provides PHP classes that correspond to resources in the NETELLER REST API.

Installation

To install this version: composer require kevinkl3/neteller

To install original version: composer require GrandMasterX/neteller

Configuration

You need to define the authentication details using the setApiCredentials method.

Example:

$url = 'https://test.api.neteller.com/';
$clientId = 'AAAAAAAAAAAAAAAAA';
$clientSecret = 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB';

// Parent class
$api = new NetellerApi();
$api->setApiCredentials($url, $clientId, $clientSecret);

// All other subclases
$createOrder = new CreateOrder();
$createOrder->setApiCredentials($url, $clientId, $clientSecret);

Verbose Mode (cURL)

Enable or disable the cURL verbose mode using the setVerbose method.

Example:

$api->setVerbose(true);

NetellerAPI Class

A parent class which all classes below extend.

Methods

Example

use NetellerAPI\NetellerAPI;

$api = new NetellerApi();
$ip = $api->getIP();
var_dump($ip);

It can also be used in the context of a child class:

use NetellerAPI\RequestPayment;

$url = 'https://test.api.neteller.com/';
$clientId = 'AAAAAAAAAAAAAAAAA';
$clientSecret = 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB';

$deposit = new RequestPayment();
$deposit->setApiCredentials($url, $clientId, $clientSecret);

 $deposit->setPaymentMethodValue('[email protected]')
          ->setVerificationCode(270955)
          ->setTransactionMerchantRefId('adfiu1i23478172349a')
          ->setTransactionAmount(1234)
          ->setTransactionCurrency('USD');

$result = $deposit->doRequest();
  $ip = $deposit->getIP();

  var_dump($result);
  var_dump($ip);

RequestPayment Class

Creates a new incoming transfer payment.

Methods

Example

$deposit = new NetellerAPI\RequestPayment();
$deposit->setPaymentMethodValue('[email protected]')
        ->setVerificationCode(270955)
        ->setTransactionMerchantRefId('adfiu1i23478172349a')
        ->setTransactionAmount(1234)
        ->setTransactionCurrency('USD');
$result = $deposit->doRequest();
var_dump($result);

CreatePayment Class

Creates a new outgoing payment.

Methods

Example

$withdrawal = new NetellerAPI\CreatePayment();
$withdrawal->setPayeeProfileEmail('[email protected]')
           ->setTransactionAmount(1234)
           ->setTransactionCurrency('USD')
           ->setTransactionMerchantRefId('adfiu1i23478172349W2')
           ->setMessage('sample message');
$result = $withdrawal->doRequest();
var_dump($result);

LookupPayment Class

Returns details about a previous payment request.

Methods

Example

$lookup = new NetellerAPI\LookupPayment();
$lookup->setTransactionId('850430740226289')
       ->setExpand('customer');
$result = $lookup->doRequest();
var_dump($result);

CreateOrder Class

Creates a payment order for NETELLERgo! You will need to redirect your customer to the returned URL to initiate the hosted Quick Checkout flow and collect the payment.

Methods

Example

$order = new NetellerAPI\CreateOrder();
$order->setOrderMerchantRefId('adfiu1i23478172349o1')
      ->setOrderTotalAmount(2099)
      ->setOrderCurrency('USD')
      ->setOrderLang('en_US')
      ->setItems(array
                    (
                        "quantity" => 1,
                        "name" => "Item A",
                        "description" => "Lorem ipsum dolor sit amet",
                        "sku" => "XYZPART1",
                        "amount" => 1000
                    )
                )
      ->setItems(array
                    (
                        "quantity" => 2,
                        "name" => "Item B",
                        "description" => "Consectetur adipiscing elit",
                        "sku" => "XYZPART2",
                        "amount" => 200
                    )
                )
      ->setFees(array
                    (
                        "feeName" => "Setup Fee",
                        "feeAmount" => 500
                    )
                )
      ->setTaxes(array
                    (
                        "taxName" => "VAT",
                        "taxAmount" => 199
                    )
                )
      ->setPaymentMethods(array
                (
                    "type" => "onlinebanking",
                    "value" => "sofortbanking"
                )
            )
      ->setRedirectOnSuccess("https://example.com/success.html")
      ->setRedirectOnCancel("https://example.com/cancel.html")
      ->setBillingDetailsEmail("[email protected]")
      ->setBillingDetailsCountry("DE")
      ->setBillingDetailsFirstName("John")
      ->setBillingDetailsLastName("Smith")
      ->setBillingDetailsCity("Calgary")
      ->setBillingDetailsAddress1("address line 1")
      ->setBillingDetailsAddress2("address line 2")
      ->setBillingDetailsAddress3("address line 3")
      ->setBillingDetailsCountrySubDivisionCode("AB")
      ->setBillingDetailsPostCode("T8A22J")
      ->setBillingDetailsLang("en");
$result = $order->doRequest();
$redirectUrl = $order->getRedirectUrl();
var_dump($result);
var_dump($redirectUrl);

LookupOrder Class

Returns details about a previous order request.

Methods

Example

$lookup = new NetellerAPI\LookupOrder();
$lookup->setOrderId("ORD_1f21ca9d-e647-46bc-9dde-91c70632e587");
$result = $lookup->doRequest();
var_dump($result);

LookupOrderInvoice Class

Returns details about an invoice for an order.

Methods

Example

$lookup = new NetellerAPI\LookupOrderInvoice();
$lookup->setOrderId("ORD_5c0023d3-c928-4771-9016-1fc169283b0f")
       ->setExpand("customer,order");
$result = $lookup->doRequest();
var_dump($result);

CreateCustomer Class

Pre-populate the NETELLER sign-up page with information from your database, so you can speed up the registration process.

Methods

Example

$signup = new NetellerAPI\CreateCustomer();
$signup->setEmail("[email protected]")
       ->setFirstName("John")
       ->setLastName("Smith")
       ->setAddress1("address line 1")
       ->setAddress2("address line 2")
       ->setAddress3("address line 3")
       ->setCity("Calgary")
       ->setCountry("CA")
       ->setCountrySubDivisionCode("AB")
       ->setPostCode("T8A22J")
       ->setGender("m")
       ->setDobDay("31")
       ->setDobMonth("01")
       ->setDobYear("1975")
       ->setLanguage("en_US")
       ->setCurrency("EUR")
       ->setMobile("14035552333")
       ->setLandLine("14032332333")
       ->setLinkBackUrl("https://example.com/")
       ->setBtag("A_234B_345C_");
$response = $signup->doRequest();
$redirectUrl = $signup->getRedirectUrl();
var_dump($response);
var_dump($redirectUrl);

LookupCustomer Class

Lookup details for a specific customer.

Methods

Example

$lookup = new NetellerAPI\LookupCustomer();
$lookup->setCustomerId("453523712313")
       ->setRefreshToken("0.AgAAAU0yy4sHAAAAB1jwsOC9J7TBAYynTble-g2fdC-d.7xIAyXxQWsDaiLzjY4qimsqfyYU");
$result = $lookup->doRequest();
var_dump($result);

CreatePlan Class

Creates a subscription plan.

Methods

Example

$plan = new NetellerAPI\CreatePlan();
$plan->setPlanId("MONTHLYGREENPLAN")
     ->setPlanName("Sample Premier Monthly Membership")
     ->setInterval(3)
     ->setIntervalType("monthly")
     ->setIntervalCount(4)
     ->setAmount(2995)
     ->setCurrency("USD");
$result = $plan->doRequest();
var_dump($result);

LookupPlan Class

Returns details about a previously created subscription plan.

Methods

Example

$lookup = new NetellerAPI\LookupPlan();
$lookup->setPlanId("MONTHLYGREENPLAN");
$result = $lookup->doRequest();
var_dump($result);

CancelPlan Class

Cancels a previously created subscription plan.

Methods

Example

$plan = new NetellerAPI\CancelPlan();
$plan->setPlanId("MONTHLYGREENPLAN");
$result = $plan->doRequest();
var_dump($result);

Delete Plan

Deletes a previously created subscription plan.

Methods

Example

$plan = new NetellerAPI\DeletePlan();
$plan->setPlanId("MONTHLYGREENPLAN");
$result = $plan->doRequest();
var_dump($result);

ListPlans Class

Returns a list of all plans.

Methods

Example

$plans = new NetellerAPI\ListPlans();
$plans->setLimit(10)
      ->setOffset(0);
$result = $plans->doRequest();
var_dump($result);

CreateSubscription Class

Enrolls an existing NETELLER account holder in one of your subscription plans.

Methods

Examples

Using Authorization code

$subscription = new NetellerAPI\CreateSubscription();
$subscription->setPlanId("MONTHLYGREENPLAN")
             ->setAccountProfileEmail("[email protected]")
             ->setStartDate("2015-05-09T00:00:00Z")
             ->setAuthCode("0.AAAAAU0yjMR5AAAAAAAEk-B1A0yk5HA7RZkwz9zQYRFN.eNw8W12CqB06b2Qc2rvr3vUyc-g")
             ->setRedirectUri("https://example.com/")
             ->setExpand("plan,customer");
$result = $subscription->doRequest();
var_dump($result);

Using Refresh token

$subscription = new NetellerAPI\CreateSubscription();
$subscription->setPlanId("MONTHLYGREENPLAN")
             ->setAccountProfileEmail("[email protected]")
             ->setStartDate("2015-05-09T00:00:00Z")
             ->setRefreshToken("0.AgAAAU0yy4sHAAAAB1jwsOC9J7TBAYynTble-g2fdC-d.7xIAyXxQWsDaiLzjY4qimsqfyYU")
             ->setRedirectUri("https://example.com/")
             ->setExpand("plan,customer");
$result = $subscription->doRequest();
var_dump($result);

LookupSubscription Class

Returns details about a previously created subscription.

Methods

Example

$lookup = new NetellerAPI\LookupSubscription();
$lookup->setSubscriptionId("180")
       ->setExpand("plan,customer");
$result = $lookup->doRequest();
var_dump($result);

CancelSubscription Class

Cancels a previously created subscription.

Methods

Example

$subscription = new NetellerAPI\CancelSubscription();
$subscription->setSubscriptionId("181");
$result = $subscription->doRequest();
var_dump($result);

ListSubscriptions Class

Lists all previously created subscriptions.

Methods

Example

$subscriptions = new NetellerAPI\ListSubscriptions();
$subscriptions->setLimit(10)
              ->setOffset(0);
$result = $subscriptions->doRequest();
var_dump($result);

LookupSubscriptionInvoice Class

Looks up a subscription invoice.

Methods

Example

$lookup = new NetellerAPI\LookupSubscriptionInvoice();
$lookup->setSubscriptionId(166)
       ->setInvoiceNumber(42)
       ->setExpand("customer, subscription");
$result = $lookup->doRequest();
var_dump($result);

LookupAllSubscriptionInvoices Class

Looks up all subscription invoices.

Methods

Example

$lookup = new NetellerAPI\LookupAllSubscriptionInvoices();
$lookup->setSubscriptionId(166)
       ->setLimit(10)
       ->setOffset(0);
$result = $lookup->doRequest();
var_dump($result);

WebhookHandler Class

Handles incoming webhook requests.

Methods

Example

$webhook = new NetellerAPI\WebhookHandler();
$webhook->handleRequest();

function payment_succeeded($data){
    $api = new NetellerAPI\NetellerAPI();
    $result = $api->getUrl($data->links[0]->url);
    //do something with the response here
}

Test Accounts

Currency Account ID Email Address Secure ID Password
AED 451323763077 [email protected] 315508 NTt3st1!
AUD 451823760529 [email protected] 521652 NTt3st1!
BGN 450424149137 [email protected] 354380 NTt3st1!
BRL 452124231445 [email protected] 907916 NTt3st1!
CAD 455781454840 [email protected] 755608 NTt3st1!
CHF 452324249609 [email protected] 372993 NTt3st1!
DKK 459734233011 [email protected] 856751 NTt3st1!
EUR 453501020503 [email protected] 908379 NTt3st1!
GBP 458591047553 [email protected] 411392 NTt3st1!
HUF 450824149649 [email protected] 363552 NTt3st1!
INR 450824016049 [email protected] 332880 NTt3st1!
JPY 452604251512 [email protected] 490055 NTt3st1!
MAD 453123727913 [email protected] 796289 NTt3st1!
MXN 456444237546 [email protected] 878408 NTt3st1!
MYR 452724116521 [email protected] 108145 NTt3st1!
NGN 450924006321 [email protected] 205750 NTt3st1!
NOK 455394172769 [email protected] 418852 NTt3st1!
PLN 451823629489 [email protected] 654091 NTt3st1!
RON 450424018097 [email protected] 860647 NTt3st1!
RUB 455121038904 [email protected] 888470 NTt3st1!
SEK 453313818311 [email protected] 173419 NTt3st1!
SGD 451523741861 [email protected] 316938 NTt3st1!
TND 453523858985 [email protected] 588931 NTt3st1!
TWD 451723748785 [email protected] 711009 NTt3st1!
USD 454651018446 [email protected] 270955 NTt3st1!
ZAR 453523842837 [email protected] 708904 NTt3st1!

Ips for whitelist


All versions of neteller with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kevinkl3/neteller contains the following files

Loading the files please wait ....