Secure Remote Commerce
Server-Side Implementation
Your integration may be impacted by upcoming certificate changes. Visit our best practices guide to learn more.
SRC is currently in a limited release to eligible merchants, and the API is subject to change. It is available in iOS v4+ and JavaScript v3+.
Contact us to request access to the release.
Vaulting SRC
Your customer's SRC card selection can be saved to your Vault and reused for future transactions, just like a credit card.
Collect device data
from the client and include the deviceDataFromTheClient
in the transaction.
- Ruby
result = gateway.payment_method.create(
:customer_id => "131866",
:payment_method_nonce => nonce_from_the_client
)
You can also save the customer's SRC card to your Vault at the same time as your transaction by
using
Transaction: Sale
with
Options.StoreInVault
or
Options.StoreInVaultOnSuccess
.
Creating transactions
Creating a SRC transaction is the same as creating any other transaction with a nonce:
- Ruby
result = gateway.transaction.sale(
:amount => "10.00",
:payment_method_nonce => nonce_from_the_client,
:device_data => device_data_from_the_client,
:options => {
:submit_for_settlement => true
}
)
if result.success?
# See result.transaction for details
else
# Handle errors
end