createOfflineOrder( )


開発者プレビュー

このAPIは変更される可能性があります。プレビュー期間中、開発者からのフィードバックに基づいてバグ修正や新機能がリリースされる予定です。

Creates an order for a buyer who purchased the plan with an offline transaction.

について createOfflineOrder() function returns a Promise that resolves to an order object when the order has been created.

Payment of an offline order is handled in 1 of 2 ways.

  • When creating the order, select 真の in the paid request parameter.
  • After creation, with the markAsPaid() 関数である。

When creating a non-free offline order:

  • The order's status is set to "PENDING" if the start date is in the future. Otherwise, the status is set to "ACTIVE". The order's last payment status is set to "UNPAID" または "PAID".

When creating a free offline order:

  • The order's status is set to "PENDING" if the start date is in the future. Otherwise, the status is set to "ACTIVE".
  • The order's last payment status is set to "NOT_APPLICABLE".
Permissions
Manage Orders
Learn more about app permissions.
メソッド宣言
コピー
メソッド・パラメータ
planIdstringRequired

ID of the plan being ordered. See Plans for more information about plan IDs


memberIdstringRequired

ID of the member ordering the plan.


optionsCreateOfflineOrderOptions

Options for creating an offline order.

リターン
Return Type:Promise<CreateOfflineOrderResponse>
役に立ちましたか?
はい
いいえ