MobileH5Version 1.0.0
Create PayPal Payment
https://pay.globepay.co/api/v1.0/paypal/partners/{partner_code}/orders/{order_id}Header
| Field | Description |
|---|---|
Accept | application/json |
Content-Type | application/json |
Path Variable
| Field | Type | Description |
|---|---|---|
partner_code | String | Required, Partner code |
order_id | String | Required, Partner order id |
JSON keys
| Field | Type | Description |
|---|---|---|
description | String | Required, order description |
price | int | Required, price of the order. Use the base unit of the currency. |
currency | String | Required, currency |
channel | String | Required, payment channel, case sensitive. |
notify_url | String | Optional, system will call the notify url if provided when the payment succeeds. |
redirect | String | Optional, redirect url when payment succeeded. |
operator | String | Note for the operator who created this order. |
Query Params
| Field | Type | Description |
|---|---|---|
time | Long | Required, UTC timestamp in milliseconds |
nonce_str | String | Required, Random string |
sign | String | Required, Sign |
Success 200
| Field | Type | Description |
|---|---|---|
return_code | String | Execution result |
result_code | String | SUCCESS means order created successfully, EXISTS means order has already existed. |
channel | String | Payment channel |
order_id | String | Order id in GlobePay |
partner_order_id | String | Partner order id |
web_url | String | Payment page to redirect to. |
Error Code
| Name | Description |
|---|---|
ORDER_MISMATCH | Order is not belong to this partner |
ORDER_PAID | Order has already been paid |
SYSTEMERROR | Exception inside system |
INVALID_SHORT_ID | Partner code is invalid or there is no partner associated with this code |
SIGN_TIMEOUT | Sign expired, the difference between time and the server time is more than 5 minutes |
INVALID_SIGN | Invalid sign |
PARAM_INVALID | Parameters are invalid. See return_msg for more details. |
NOT_PERMITTED | Gateway payment permission has not been enabled for this partner |
INVALID_CHANNEL | Channel name is not available, check the Capitalize |
ERROR
| Name | Description |
|---|---|
return_code | Error Code |
return_msg | Error Description |
