Store encrypted card details for subscription payments

POST {{baseUrl}}/storedPaymentMethods

Creates a token to store the shopper's payment details. This token can be used for the shopper's future payments.

Request Body

{"merchantAccount"=>"{{YOUR_MERCHANT_ACCOUNT}}", "shopperReference"=>"YOUR_SHOPPER_REFERENCE", "paymentMethod"=>{"type"=>"scheme", "number"=>"4111111111111111", "expiryMonth"=>"03", "expiryYear"=>"2030", "cvc"=>"737", "holderName"=>"John Smith"}, "recurringProcessingModel"=>"Subscription", "shopperEmail"=>"s.hopper@test.com", "shopperIP"=>"192.0.2.1"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring
Idempotency-KeynullA unique identifier for the message with a maximum of 64 characters (we recommend a UUID).

RESPONSES

status: Created

{"expiryMonth":"03","expiryYear":"2030","holderName":"John Smith","id":"KHQC5N7G84BLNK43","lastFour":"1111","shopperReference":"YOUR_SHOPPER_REFERENCE","type":"scheme"}