Paymill: how to get list of client's credit cards, previously used in payments

StackOverflow https://stackoverflow.com/questions/22592028

  •  19-06-2023
  •  | 
  •  

문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top