我想使用Stripe Api创建支付,我已经在Android中创建了所有内容,现在我可以获得令牌,但他说将其发送到您的服务器,问题是我找不到将接收我的令牌并进行付款的服务器代码或Web服务。请帮忙解决。
https://stripe.com/docs/mobile/android
Card card = new Card("4242424242424242", 12, 2017, "123");
Stripe stripe = new Stripe("pk_test_6pRNASCoBOKtIshFeQd4XMUh");
stripe.createToken(
card,
new TokenCallback() {
public void onSuccess(Token token) {
// Send token to your server
//what should i do in this step i want any code in php that do this job
}
public void onError(Exception error) {
// Show localized error message
Toast.makeText(getContext(),
error.getLocalizedString(getContext()),
Toast.LENGTH_LONG
).show();
}
}
)