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.
A transaction defines the contract of a payment - what is the payment for and who is fulfilling it.
A resource representing a Payer that funds a payment.
A Payment resource; create one using the above types and intent as sale
or authorize
Create a payment using a valid APIContext
For more information, please visit PayPal Developer REST API Reference.
CreatePayment using credit card Sample
This sample code demonstrate how you can process a payment with a credit card. API used: /v1/payments/payment