Use customer data to determine whether to capture transactions
When a shopper makes a payment from a MyPaySafeCard account, the transaction flow will include:- Your shopper logs in to your system.
- The shopper makes a payment using MyPaySafeCard.
- The shopper authorizes the transaction. The money is reserved, but not debited yet.
- During the transaction PaySafeCard sends customer data to Adyen (first name, last name and date of birth).
-
You receive the Customer Data Exchange content from Adyen.
The data is returned from Adyen in one of two ways:
- After the shopper completes the redirect, send the
redirectResultto the /payments/details endpoint to verify that the transaction is authorized and to view the customer’s data. - After the transaction is authorized, listen for the standard webhook notification, which is sent to the endpoint you configure in Customer Area. The webhook contains the customer data in the same format as the /payments/details response.
- first and last name
- date of birth
- ID of the account
- After the shopper completes the redirect, send the
- Your system compares the information in the user account with the information from the Customer Data Exchange.
- Your system either cancels the payment with a request to /payments/{paymentPspReference}/cancels (which removes the reservation of the funds on the shopper’s MyPaySafeCard account balance), or captures the payment with a request to /payments/{paymentPspReference}/captures.
Configure how the customer data should be returned
Indicate in the Customer Area how the customer data must be returned:- To receive it in the /payments/details response, go to Developer > Additional Data, and enable “payment account owner data”.
- To receive it in the standard webhook, go to Developer > Webhooks, create a standard webhook, and in “payment” enable “payment account owner data”.