A Payment Resource; create one using
the above types and intent as sale
or authorize
A resource representing a Payer that funds a payment
Payment Method as paypal
A transaction defines the contract of a payment - what is the payment for and who is fulfilling it.
Let's you specify a payment amount.
Total must be equal to sum of shipping, tax and subtotal.
Let's you specify details of a payment amount.
Items within a transaction.
These URLs will determine how the user is redirected from PayPal once they have either approved or canceled the payment.
Create a payment using a valid APIContext
Using the links
provided by the createdPayment
object, we can give the user the option to redirect to PayPal to approve the payment.
Using the information from the redirect, setup the payment to execute.
Execute the payment.
For more information, please visit PayPal Developer REST API Reference.
Api Context
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.