Payment-Resources
Creates a payment resource for a single-item purchase
Creates a new PayPal payment resource for a single-item Buy Now checkout. Returns the full resource details including ID, payment link url, and status.
post/v1/checkout/payment-resources
Request
- Base URLhttps://api-m.paypal.com
- Auth
- OAuth 2Client credentialsToken URL/v1/oauth2/tokenScopeshttps://uri.paypal.com/services/checkout/payment-resources
- or OAuth 2Client credentialsToken URL/v1/oauth2/tokenScopeshttps://uri.paypal.com/services/checkout/payment-resources/readwrite
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
PayPal-Request-Idstring
The server stores keys for 3 hours.
Content-Typestring
The media type. Required for operations with a request body. The value is application/<format>, where format is json.
PayPal-Auth-Assertionstring
Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header.
Request body
Response
Payment resource generated successfully.
Changes
No recorded changes to this operation across all 1 revision of this API.