CreateOrder
Creates an order. Merchants and partners can add Level 2 and 3 data to payments to reduce risk and payment processing costs.
Stored Procedure Specific Information
The CreateOrder Stored Procedure requires following columns to execute:
- Intent
- PurchaseUnits
EXEC CreateOrder @Intent = 'CAPTURE', @PurchaseUnits = ' [ {\n
\"amount\": {\n
\"currency_code\": \"USD\",\n
\"value\": \"100.00\"\n
}\n
}]'
Input
| Name | Type | Required | Description |
| Intent | String | True | The payment intent: capture, authorize. |
| PurchaseUnits | String | True | An array of purchase units. Each purchase unit establishes a contract between a payer and the payee. |
| PaymentSource | String | False | The payment source definition. |
| ApplicationContext | String | False | Customizes the payer experience during the approval process for the payment with PayPal. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the operation was successful. |
| Id | String | The PayPal-generated ID for the payment. |