Question

how to obtain a list of credit cards, (I guess, only last 4 digits) to show in a list to client? Could you advise me with a flow?

Was it helpful?

Solution

In PAYMILL the credit card representation is the Payment object. When you create a transaction with a token, the API will always generate it, and it will be returned to you in the "payment" field. You also have the option to explicitly create a payment object from a token, without creating the transaction. If you do so, consider this limitation that comes with the 3DS flow.

You can keep track of payment objects in your database, but you can also use the PAYMILL API. For each of your customers, create a corresponding client object. When you create a transaction or a payment, send the client id along. A similar flow can be seen in the iOS tutorial.

You can accomplish all above with the .net wrapper. Please make sure you always use the latest version and you are using the official wrapper: https://github.com/paymill/paymill-net

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top