|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
|
|
|
|
|
orderBasic:
|
|
|
|
|
required:
|
|
|
|
|
- description
|
|
|
|
@ -32,6 +31,16 @@ orderBasic:
|
|
|
|
|
or in format: digits with 'm' or 'h' tail. m=minutes, h=hours.
|
|
|
|
|
default is 5m. if merchants has a global configuration in our backend, it will take the configuration.
|
|
|
|
|
no shorter than 1m and no longer than 24h
|
|
|
|
|
extra:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
pay_type:
|
|
|
|
|
type: string
|
|
|
|
|
description: |
|
|
|
|
|
Determine wallet type. For AlipayPlus orders, merchant can determine which wallet to use so that it will directly go into cashier page.
|
|
|
|
|
Otherwise a wallet choice page will be shown to customers to determine which wallet they want to use.
|
|
|
|
|
|
|
|
|
|
value comes from ConsultPayment API
|
|
|
|
|
orderWithChannel:
|
|
|
|
|
allOf:
|
|
|
|
|
- $ref: '#/orderBasic'
|
|
|
|
@ -328,6 +337,65 @@ transactionItem:
|
|
|
|
|
remark:
|
|
|
|
|
type: string
|
|
|
|
|
description: transaction remark
|
|
|
|
|
consultPaymentRequest:
|
|
|
|
|
type: object
|
|
|
|
|
required:
|
|
|
|
|
- currency
|
|
|
|
|
- amount
|
|
|
|
|
- terminal_type
|
|
|
|
|
properties:
|
|
|
|
|
currency:
|
|
|
|
|
type: string
|
|
|
|
|
description: |
|
|
|
|
|
Currency of the incoming payment. Should be 3-character code in [ISO-4217](https://www.iso.org/iso-4217-currency-codes.html). For example, AUD
|
|
|
|
|
amount:
|
|
|
|
|
type: integer
|
|
|
|
|
description: Order amount of the incoming payment. Should be minimal unit of the currency.
|
|
|
|
|
terminal_type:
|
|
|
|
|
type: string
|
|
|
|
|
enum:
|
|
|
|
|
- WEB
|
|
|
|
|
- H5
|
|
|
|
|
- APP
|
|
|
|
|
description: Web is for pc browser paying, H5 is for mobile browser or inner webview in wallet apps. APP is for merchant's App. case-sensitive
|
|
|
|
|
user_region:
|
|
|
|
|
type: string
|
|
|
|
|
description: |
|
|
|
|
|
Standard 2-character code in [ISO-3166](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en). Which country is your customer in.
|
|
|
|
|
This will help to determine which wallet is suggested. For example, a South-Korea customer will be recommended to use KakaoPay
|
|
|
|
|
os_type:
|
|
|
|
|
type: string
|
|
|
|
|
description: For App payment. Pass this os is customer using. Case-sensitive
|
|
|
|
|
enum:
|
|
|
|
|
- IOS
|
|
|
|
|
- ANDROID
|
|
|
|
|
client_ip:
|
|
|
|
|
type: string
|
|
|
|
|
description: customer ip address
|
|
|
|
|
user_agent:
|
|
|
|
|
type: string
|
|
|
|
|
description: If customer is in the inner webview of wallet. this will help to determine which wallet should be recommended
|
|
|
|
|
consultResultItemAlipayPlus:
|
|
|
|
|
type: object
|
|
|
|
|
required:
|
|
|
|
|
- sub_channel
|
|
|
|
|
- enabled
|
|
|
|
|
properties:
|
|
|
|
|
sub_channel:
|
|
|
|
|
type: string
|
|
|
|
|
description: wallet name. should be passed as pay_type parameter in new order requests
|
|
|
|
|
enabled:
|
|
|
|
|
type: boolean
|
|
|
|
|
description: is this wallet available to use
|
|
|
|
|
preferred:
|
|
|
|
|
type: boolean
|
|
|
|
|
description: is this wallet recommended
|
|
|
|
|
logo:
|
|
|
|
|
type: string
|
|
|
|
|
description: wallet logo
|
|
|
|
|
disable_reason:
|
|
|
|
|
type: string
|
|
|
|
|
description: reason for why this wallet was unable to use
|
|
|
|
|
customInfo:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|