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.
Requirements
Requirement | Description |
---|---|
Integration type | Make sure that you have an existing API-only integration. |
Setup steps | Before you begin, add in your test Customer Area. |
Preparation
- 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/region. For example, GB.
- amount.currency: Any supported currency. For example, GBP.
In the response, you receive paymentMethod.type
: samsungpay.
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
paymentCredential
output. -
From your server, make a /payments request providing:
paymentMethod.type
: samsungpaypaymentMethod.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.