我想使用Stripe获取客户的银行卡号码,在我的网站上注册,以验证和保存它的在带。但不能起诉。相反,我想在将来向他们收费。有可能通过Stripe吗?多么?
更新
这能做我想做的事吗?
# Get the credit card details submitted by the form
token = request.POST['stripeToken']
# Create a Customer
customer = stripe.Customer.create(
source=token,
description="Example customer"
我试图在一个创建示例的银行账户中生成一个16位随机卡号。我试过下面的代码,但没成功。
void generate_card_number() {
srand(time(0));
long long int cardnumber = 0;
int i, randctrl;
for (i = 0; i < 15; i++) {
do {
randctrl = rand() % 9;
} while (randctrl == 0);
cardnumber += ((10^i) * rand