Pass in a APIContext
object to authenticate
the call and to send a unique request id
(that ensures idempotency). The SDK generates
a request id if you do not pass one explicitly.
See Configuration.cs to know more about APIContext.
Items within a transaction.
A resource representing a credit card that can be used to fund a payment.
A transaction defines the contract of a payment - what is the payment for and who is fulfilling it.
A resource representing a Payer's funding instrument. For stored credit card payments, set the CreditCardToken field on this object.
A Payment Resource; create one using the above types and intent as 'sale'
Create a payment using a valid APIContext
For more information, please visit PayPal Developer REST API Reference.
CreatePayment Using Saved Card Sample
This sample code demonstrates how you can process a Payment using a previously saved credit card. API used: /v1/payments/payment