我正在做条带集成后端-> Java前端->有角度的。充值后,这笔钱将转到关联的帐户中。我有两种付款方式:信用卡和Sepa借记卡;没有关联帐户付款成功,但使用关联帐户信用卡可以,但是Sepa出现此错误
类型
sepa_debit
是无效的源类型。
this.stripe = Stripe(environment.stripe.publishableKey, {
stripeAccount: "xxxxxxxx"
});
let sourceData = {
type: 'sepa_debit',
currency: 'eur',
owner: {
name: this.paymentDTO.firstName +" "+ this.paymentDTO.lastName,
email: this.authService.getAuthUser().email
},
mandate: {
// Automatically send a mandate notification email to your customer
// once the source is charged.
notification_method: 'email',
}
};
// Call `stripe.createSource` with the iban Element and additional options.
this.stripe.createSource(this.ibanElementForm, sourceData)
.then(function(result) {
console.log(result);
}
}, err => {});
}
});