Skip to Content
Docs

Add to checkout

Take Neteller payments with Universal checkout, Headless checkout, or the API, and test them in the sandbox.

You can accept Neteller payments in three ways:

  • Universal checkout: Pay.com.js displays Neteller in its payment form.
  • Headless checkout: You build your own checkout UI, and Pay.com.js starts the Neteller payment when the customer selects it.
  • Server-to-server: You create the charge from your server and redirect the customer to Neteller.

Before you start, ask your account manager to enable Neteller for your account, then turn it on in the Pay.com dashboard.

Universal checkout

Universal checkout displays Neteller in its payment form when the payment session includes it.

  1. 1

    Create a payment session

    On your server, create a payment session with POST /v1/sessions/payment and include "neteller" in payment_method_types.

    {
      "amount": 5000,
      "currency": "eur",
      "customer_reference_id": "cust-001",
      "payment_method_types": ["card", "neteller"]
    }

    Amounts are in the currency's minor unit, so 5000 is €50.00. customer_reference_id is your own ID for the customer, and it's required. Return the session's client_secret to your page.

  2. 2

    Display the checkout

    On your page, initialize Pay.com.js with the client_secret and mount Universal checkout, as in Universal checkout. No method-specific configuration is required.

  3. 3

    Handle the result

    When the customer selects Neteller and clicks Pay, Pay.com.js opens Neteller in a window over your page or in a new tab, depending on your account configuration.

    • In a window over your page: if the customer closes it, Pay.com.js calls onFailure.
    • In a new tab: your page asks the customer to finish there. If they close the tab, Pay.com.js keeps waiting for the payment's outcome.

    When the customer finishes, Pay.com.js calls onSuccess if the payment succeeded, onPending if its result isn't final yet, or onFailure if it failed. Fulfill the order when you receive the charge.succeeded webhook event.

Headless checkout

With Headless checkout, you build your own checkout UI, and Pay.com.js starts the Neteller payment when the customer selects it.

  1. 1

    Create a payment session

    Create the payment session on your server as in Universal checkout, with "neteller" in payment_method_types, and initialize Pay.com.js with its client_secret.

  2. 2

    Check that Neteller is available

    Call checkout.getPaymentMethods(), and show your Neteller button only when the list includes it. Don't use checkout.canMakePayments() for this, because it reports only Apple Pay and Google Pay.

    const methods = await checkout.getPaymentMethods()
    const neteller = methods.find((method) => method.paymentMethodType === 'neteller')
  3. 3

    Start the payment

    When the customer selects Neteller, call checkout.headless() with 'neteller'.

    try {
      await checkout.headless('neteller')
    } catch (error) {
      // onFailure receives the error details too.
    }

    Pay.com.js opens Neteller in a window over your page or in a new tab, depending on your account configuration.

    • In a window over your page: if the customer closes it, Pay.com.js calls onFailure.
    • In a new tab: your page asks the customer to finish there. If they close the tab, Pay.com.js keeps waiting for the payment's outcome.

    When the customer finishes, Pay.com.js calls onSuccess if the payment succeeded, onPending if its result isn't final yet, or onFailure if it failed. Fulfill the order when you receive the charge.succeeded webhook event.

Server-to-server

From your server, a Neteller payment takes three steps: create the charge, create a linked authentication session to obtain the redirect URL, and redirect the customer to Neteller.

  1. 1

    Create the charge

    Send POST /v1/charges with source_data.type set to "neteller". Pay.com sends source_data.billing_details.email to Neteller as the email of the customer's Neteller account.

    {
      "amount": 5000,
      "currency": "eur",
      "source_data": {
        "type": "neteller",
        "billing_details": {
          "email": "jane.smith@example.com"
        }
      },
      "customer_reference_id": "cust-001",
      "reference": "order-12345",
      "description": "Order #12345"
    }

    The charge's status is requires_authentication until the customer approves the payment.

  2. 2

    Create a linked authentication session

    Send POST /v1/sessions/authentication/linked with the charge's id as resource and the return_url to return the customer to. confirm defaults to true, so Pay.com completes the charge when the customer approves it. Each charge supports one linked authentication session.

    {
      "resource": "chrg_702172227948251136",
      "return_url": "https://your-site.com/payment/complete"
    }
  3. 3

    Redirect the customer

    Send the customer to the session's url with a full-page redirect. After they approve or cancel the payment, Neteller redirects them back to your return_url. Fulfill the order when you receive the charge.succeeded webhook event, and handle charge.failed as a canceled or declined payment.

Neteller options

Set these in payment_method_options.neteller on the payment session or the charge.

OptionTypeDescription
verification.enabledbooleanWhether the verification feature is enabled.
verification.accepted_verification_level_valuesarray of stringList of accepted verification levels.
verification.require_match_for_customer_details.first_namebooleanWhether to require an exact match on the customer's first name.
verification.require_match_for_customer_details.last_namebooleanWhether to require an exact match on the customer's last name.
verification.require_match_for_customer_details.countrybooleanWhether to require an exact match on the customer's country/region.
verification.require_match_for_customer_details.postal_codebooleanWhether to require an exact match on the customer's postal/ZIP code.
verification.require_match_for_customer_details.line1booleanWhether to require an exact match on the first line of the street address.
verification.require_match_for_customer_details.dobbooleanWhether to require an exact match on the customer's date of birth.

Test in the sandbox

Test with your sandbox API key (sk-pay-com-sandbox-...) against https://api.sandbox.pay.com/v1. Sandbox payments never move real funds. See Environments.

In the sandbox, Pay.com displays a payment simulator instead of Neteller's page. It shows the payment's ID and lets you choose a Payment Status and a Result Code before clicking Submit. With Pay.com.js, the simulator opens in place of Neteller's page. From your server, open the authentication session's url in a browser.

Payment statusResult
COMPLETEDThe charge moves to succeeded, the charge.succeeded event fires, and Pay.com.js calls onSuccess.
PROCESSINGThe charge stays pending, and Pay.com.js calls onPending.
FAILED or ERRORThe charge moves to failed, the charge.failed event fires, and Pay.com.js calls onFailure.

To test a customer who leaves without paying, close the simulator without submitting. The charge stays requires_authentication.

Was this page helpful?