使用BlueSnap Payment API时,如何为每笔交易发送自己的ID?

时间:2016-05-24 15:57:48

标签: payment-gateway bluesnap

我正在使用他们的支付API与BlueSnap集成,并希望为每笔交易分配我自己的交易ID。这可能与BlueSnap有关吗?

1 个答案:

答案 0 :(得分:3)

是的BlueSnap支持为每笔交易分配商家特定的交易ID。

为此,您需要在merchant-transaction-id元素中加入card-transaction元素。

例如:

<card-transaction xmlns="http://ws.plimus.com">
   <card-transaction-type>AUTH_CAPTURE</card-transaction-type>
   <merchant-transaction-id>myUniqueMerchantTransactionId</merchant-transaction-id>
   <recurring-transaction>ECOMMERCE</recurring-transaction>
   <soft-descriptor>DescTest</soft-descriptor>
   <amount>11.00</amount>
   <currency>USD</currency>
   <card-holder-info>
      <first-name>test first name</first-name>
      <last-name>test last name</last-name>
   </card-holder-info>
   <credit-card>
      <card-number>4263982640269299</card-number>
      <security-code>837</security-code>
      <expiration-month>02</expiration-month>
      <expiration-year>2018</expiration-year>
   </credit-card>
</card-transaction>

您还可以在此处的文档中看到: http://developers.bluesnap.com/v2.0/docs/auth-capture#section-auth-capture-with-merchant-transaction-id