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
These instructions explain how to add Samsung Pay to your existing API-only integration. The API-only integration works the same way for all payment methods. If you haven't done this integration yet, refer to our API-only integration guide.
Before you can accept Samsung Pay payments in an Android app, you'll need to:
- Make sure that you have set up your back end implementation for making API requests.
- Add Samsung Pay in your test Customer Area.
- Request for a CSR from Adyen.
- Sign up for a Samsung Pay Developer account.
- Set Adyen as your payment gateway.
- 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:
- countryCode: Any supported country. For example, GB.
- amount.currency: Any supported currency. For example, GBP.
In the response, you receive
Make a payment
When the shopper selects to pay with Samsung Pay:
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
From your server, make a /payments request providing:
paymentMethod.samsungPayToken: The payload you received from the Samsung Pay SDK response.
The /payments response contains:
Present the payment result
resultCode that you received in the /payments response to present the payment result to your shopper.
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
|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.