-1

我正在将 bluesnap 的支付 API 与我的网站集成。如何将卡信息存储在 bluesnap 中,这样我就不必在自己的数据库中进行操作了?

4

1 回答 1

0

如果您使用支付 API,您可以在购物者级别保存信用卡数据。为此,您需要在 BlueSnap 中创建一个已保存的购物者并包含该购物者的卡片数据。您还可以包括购物者的姓名和地址等信息。

例如:

<vaulted-shopper xmlns="http://ws.plimus.com">
   <first-name>FirstName</first-name>
   <last-name>LastName</last-name>
   <payment-sources>
      <credit-card-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>
         <billing-contact-info>
            <first-name>billingFirstName</first-name>
            <last-name>billingLastName</last-name>
            <country>US</country>
            <state>MA</state>
            <address1>10 Main St</address1>
            <address2>Apt 1</address2>
            <email>email@example.com</email>
            <zip>01752</zip>
         </billing-contact-info>
      </credit-card-info>
   </payment-sources>
</vaulted-shopper>

更多信息和示例在这里:http: //developers.bluesnap.com/v2.0/docs/create-vaulted-shopper

于 2016-05-25T14:55:08.893 回答