Server-Side Implementation

Vaulting SRCAnchorIcon

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.

  1. C#
var request = new PaymentMethodRequest {
    CustomerId = "131866",
    PaymentMethodNonce = NonceFromTheClient
};

Result<paymentmethod> result = gateway.PaymentMethod.Create(request);

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 transactionsAnchorIcon

Creating a SRC transaction is the same as creating any other transaction with a nonce:

  1. C#
var request = new TransactionRequest {
    Amount = 10.00M,
    PaymentMethodNonce = nonceFromTheClient,
    DeviceData = deviceDataFromTheClient,
    Options = new TransactionOptionsRequest {
        SubmitForSettlement = true
    }
};

Result<transaction> result = gateway.Transaction.Sale(request);

if (result.IsSuccess()) {
    // See result.Target for details
} else {
    // Handle errors
}