跳到主要内容
版本:202201

完成Payment

POST 

/openapi/2022-01/payments_apps/complete_callbacks

请求

Header参数

    Access-Token string必填

    Oauth's Access Token

    Shoplazza-Shop-Domain string必填

    Shoplazza's store domain

    Shoplazza-Hmac-Sha256 string必填

    the hmac signature for this request

请求体

    app_idstring必填

    Payment App's ID

    payment_idstring必填

    Payment ID

    amountfloat必填

    Order's total price

    currencystring必填

    Three-letter ISO 4217 currency code

    transaction_nostring必填

    Payment App's transaction number for reference

    typestring必填

    Either sale or authorization. If you support payment authorization, then this value is set based on the merchant's configuration. If you don't support separate authorization and capture, then the value is always sale. For sale transactions, you need to capture the funds instantly with this request. For authorization transactions, you must place a hold on the funds and capture them later when Shoplazza sends a capture request.

    testboolean必填

    Indicates whether the payment is in test or live mode. Refer to Test mode for more information.

    statusstring必填

    Payment status from Payment App

    可选值: [paid, failed]

    extension object

    Customize object from Payment App

    object
    timestampstring必填

    ISO-8601 format timestamp, eg: 2021-09-01T18:32:20Z

响应

200

数据结构
    redirect_urlstring
    示例: https://developer.myshoplaza.com/products/test_product