Registration Page
Before you can process payments, you have to register the shopper and their payment method. The Registration Page collects shopper payment information prior to initiating any transaction. When a shopper enters card or bank details, BlueSnap creates a Vaulted Shopper and SAP generates a token for future use.
No payment occurs at this stage. You can later use the token to send a Payment Link to your shopper so they can make a payment.
Register a Payment Method
Use the Registration Page to create a Vaulted Shopper and store a shopper’s card or bank account.
-
Send a GET or POST request to
/core/v1/cards/getregistrationurl. Use POST if you want to provide the redirect URL for the registration page. For details, refer to GET cards/getregistrationurl and POST cards/getregistrationurl in the SAP API reference. -
Redirect the shopper to the returned URL to enter card or bank details. After submission, SAP returns a
sessionId. -
After the shopper enters payment details, send a GET request to
/core/v1/cards/poll/{sessionId}using the session ID from Step 2. This returns the token that represents the shopper and payment method. For details, refer to GET cards/poll/{sessionId} in the SAP API reference.
Note
You need the token from Step 3 for downstream actions such as authorization, charge, capture, and refund.
Get Vaulted Shopper Card Information
After the shopper and payment method have been registered, you can retrieve their payment card data with the /core/v1/cards/{token} endpoint. Refer to the SAP API reference for more information.
Updated 21 days ago
