我在Android上整合Stripe,我从https://github.com/stripe/stripe-android
导入了一个GitHub项目在我的卡验证后,我不明白如何将生成的令牌发送到我的服务器。我找到了一些代码,但没有帮助。
任何帮助将不胜感激!
答案 0 :(得分:2)
Stripe是非常容易实现的支付网关。
JSON示例:
com.stripe.model.Token JSON: {
"id": "tok_189gBz2eZvKYlo2Cm2Z3qsT2",
"object": "token",
"card": {
"id": "card_189gBz2eZvKYlo2CBZAUeFKj",
"object": "card",
"address_city": null,
"address_country": null,
"address_line1": null,
"address_line1_check": null,
"address_line2": null,
"address_state": null,
"address_zip": null,
"address_zip_check": null,
"brand": "Visa",
"country": "US",
"cvc_check": null,
"dynamic_last4": null,
"exp_month": 8,
"exp_year": 2017,
"fingerprint": "Xt5EWLLDS7FJjR1c",
"funding": "credit",
"last4": "4242",
"metadata": {
},
"name": null,
"tokenization_method": null
},
"client_ip": null,
"created": 1462907211,
"livemode": false,
"type": "card",
"used": false
}
在上面的示例" id":" tok_189gBz2eZvKYlo2Cm2Z3qsT2" 是您的TokenId。
答案 1 :(得分:0)