如何在 Bluesnap 中保存购物者的信用卡?
How can I save my shoppers' credit cards in Bluesnap?
我正在将 bluesnap 的支付 API 与我的网站整合。如何将卡信息存储在 bluesnap 中,这样我就不必在自己的数据库中存储?
如果您使用的是支付方式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
我正在将 bluesnap 的支付 API 与我的网站整合。如何将卡信息存储在 bluesnap 中,这样我就不必在自己的数据库中存储?
如果您使用的是支付方式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