No momento, esta página não está disponível em português
Payment-method icon

Samsung Pay for API only

Accept Samsung Pay payments with your existing API-only integration.

Accept Samsung Pay payments using our APIs, and build your own payment form to have full control over the look and feel of your checkout page.

Before you begin

Before you can accept Samsung Pay payments in an Android app, you'll need to:

  1. Make sure that you have set up your back end implementation for making API requests.
  2. Add Samsung Pay in your test Customer Area.
  3. Request for a CSR from Adyen.
  4. Sign up for a Samsung Pay Developer account.
  5. Set Adyen as your payment gateway.
  6. Integrate the Samsung Pay SDK.

Build your payment form for Samsung Pay

Check if the Samsung Pay app is available in the shopper's device, and then show Samsung Pay as an available payment method.

We provide logos for Samsung Pay which you can use on your payment form. For more information, refer to Downloading logos.

You can also submit a /paymentMethods request specifying:

In the response, you receive paymentMethod.type: samsungpay.

Make a payment

When the shopper selects to pay with Samsung Pay:

  1. Get the tokenized payment information from the Samsung Pay SDK. For more information, see Samsung Pay SDK Programming Guide under Resources. In the guide, look for a sample of the paymentCredential output.

  2. From your server, make a /payments request providing:

    • paymentMethod.type: samsungpay
    • paymentMethod.samsungPayToken: The payload you received from the Samsung Pay SDK response.

    The /payments response contains:

    • resultCode

Present the payment result

Use the resultCode that you received in the /payments response to present the payment result to your shopper.

The resultCode values you can receive for Samsung Pay are:

resultCode Description Action to take
Authorised The payment was successful. Inform the shopper that the payment has been successful.
Error There was an error when the payment was being processed. Inform the shopper that there was an error processing their payment. The response contains a refusalReason, indicating the cause of the error.
Refused The payment was refused by the shopper's bank. Ask the shopper to try the payment again using a different payment method.

Test and go live

Samsung Pay will provide guidelines for testing. For more information, go to Getting Started > Create Services on the Samsung Pay Developers website.

You can check the status of a Samsung Pay test payment in your Customer Area > Transactions > Payments.

Before you can accept live Samsung Pay payments, you need to submit a request for Samsung Pay in your live Customer Area.

See also