Translation disclaimer

Documentation is written in English and subsequently translated. This page, therefore, might not have the most up-to-date content. If any questions arise relating to the accuracy of the translated content, please refer to the English version of the page.

Menu

利用 ACH 支付

授权 ACH 支付,并利用一次调用发起结算请求。

接受销售

POST 您的请求到 direct:sale 操作链接。

销售示例请求

POST https://try.access.worldpay.com/payments/alternative/direct/sale

ACH 销售请求正文:

Copied!
{
    "transactionReference": "unique-transactionReference",
    "merchant": {
        "entity": "an-entity"
    },
    "instruction": {
        "narrative": {
            "line1": "trading name"
        },
        "paymentInstrument": {
            "type": "bankAccountUS",
            "accountType": "checking|savings|corporate|corporateSavings",
            "accountNumber": "01234567890123456",
            "routingNumber": "01234567",
            "checkNumber": "012345678901234",
            "companyName": "for corporate accounts only",
            "billingAddress": {
                "firstName": "John",
                "lastName": "Johnson",
                "address1": "8500 Govenors Hill Drive",
                "address2": "Symmes Township",
                "address3": "",
                "postalCode": "45249",
                "city": "Ohio",
                "state": "OH",
                "countryCode": "US"
            }
        },
        "value": {
            "currency": "USD",
            "amount": 250
        }
    }
}

参数描述

参数必需描述
transactionReference该交易的独特交易参考号。最多 15 个字符,仅限数字。
merchant.entity作为加入流程的一部分而创建,用于在 Access Worldpay 中发送销售请求。
instruction包含与销售请求相关的所有支付信息的对象。
instruction.narrative.line1该字段会在客户银行对账单中显示。
instruction.paymentInstrument包含账户详情的对象。
paymentInstrument.type对于 ACH,支付工具类型必须为 "bankAccountUS"。
paymentInstrument.accountType可能的值:checking、savings、corporate、corporateSavings。
paymentInstrument.accountNumber直接转账账户的账号。
paymentInstrument.routingNumber直接转账账户的路由代码。
paymentInstrument.checkNumber直接转账账户的支票号码。
paymentInstrument.companyName如果是公司账户,则为公司名称。
paymentInstrument.billingAddress包含账单邮寄地址信息的对象。
paymentInstrument.billingAddress.firstName所使用的 firstName 的识别码。
paymentInstrument.billingAddress.lastName所使用的 lastName 的识别码。
paymentInstrument.billingAddress.address1所使用的 address1 的识别码。如果已包括,则您必须至少要发送:
paymentInstrument.billingAddress.address2所使用的 address2 的识别码。
paymentInstrument.billingAddress.address3所使用的 address3 的识别码。
paymentInstrument.billingAddress.postalCode所使用的 postalCode 的识别码。
paymentInstrument.billingAddress.city所使用的 city 的识别码。
paymentInstrument.billingAddress.state所使用的 state 的识别码。
paymentInstrument.billingAddress.countryCode所使用的 countryCode 的识别码。
instruction.value包含销售值的对象。
instruction.value.currency所使用的 currency 的识别码。
instruction.value.amount所使用的 amount 的识别码。

销售响应

最佳实践:Access Worldpay 在服务响应的头文件中返回 WP-CorrelationId。我们强烈建议您将此记录下来。我们使用 WP-CorrelationId 来检查个性化服务请求。

成功支付

您会接收到:

  • HTTP 代码 201
  • 一个 "outcome": "sentForSettlement"
  • 用于撤销追踪您支付的链接

已拒绝的支付

您会接收到:

  • HTTP 代码 201
  • 一个 "outcome": "refused"
Copied!
{
    "outcome": "sentForSettlement",
    "_links": {
        "direct:events": {
            "href": "https://try.access.worldpay.com/payments/alternative/direct/events/linkData"
        },
        "direct:reversal": {
            "href": "https://try.access.worldpay.com/payments/alternative/direct/reversals/linkData"
        },
        "curies": [{
            "name": "direct",
            "href": "https://try.access.worldpay.com/rels/payments/alternative/direct/{rels}",
            "templated": true
        }]
    }
}
{
    "outcome": "refused",
    "_links": {
        "direct:events": {
            "href": "https://try.access.worldpay.com/payments/alternative/direct/events/{linkData}"
        },
        "curies": [{
            "name": "direct",
            "href": "https://try.access.worldpay.com/rels/payments/alternative/direct/{rel}",
            "templated": true
        }]
    }
}

注释:如果出现错误,您可以在我们的错误参考中获取更多信息。

后续步骤


管理您的支付