TestingPrivate preview
Learn how to test the processing of shared payment tokens (SPTs).
After you create a granted SharedPaymentToken
object using a PaymentMethod, you can test the functionality of SPTs in an agent by using the token to create a PaymentIntent.
To grant your account an SPT using a PaymentMethod, you can collect payment details directly from the buyer or use a test PaymentMethod. The following code example demonstrates an agent issuing an SPT and sharing it with you.
Next, create a PaymentIntent using the SharedPaymentToken
object. The following code example demonstrates how you, as the seller, use the SharedPaymentToken
object to create a payment.