(async()=>{const response =awaitfetch('/secret');const{client_secret: clientSecret}=await response.json();// Render the form using the clientSecret})();
By providing your payment information and confirming this payment, you authorise (A)
これをお客様の社名に置き換えます
and Stripe, our payment service provider, to send instructions to your bank to debit your account and (B) your bank to debit your account in accordance with those instructions. As part of your rights, you are entitled to a refund from your bank under the terms and conditions of your agreement with your bank. A refund must be claimed within 8 weeks starting from the date on which your account was debited. Your rights are explained in a statement that you can obtain from your bank. You agree to receive notifications for future debits up to 2 days before they occur.
<formid="payment-form"><divclass="form-row"><labelfor="name">
Name
</label><inputid="name"name="name"required></div><divclass="form-row"><labelfor="email">
Email
</label><inputid="email"name="email"required></div><buttonid="submit-button">Pay with Bancontact</button><!-- Display mandate acceptance text. --><divid="mandate-acceptance">
By providing your payment information and confirming this payment, you
authorise (A) Rocket Rides and Stripe, our payment service provider, to
send instructions to your bank to debit your account and (B) your bank to
debit your account in accordance with those instructions. As part of your
rights, you are entitled to a refund from your bank under the terms and
conditions of your agreement with your bank. A refund must be claimed
within 8 weeks starting from the date on which your account was debited.
Your rights are explained in a statement that you can obtain from your
bank. You agree to receive notifications for future debits up to 2 days
before they occur.
</div><!-- Used to display form errors. --><divid="error-message"role="alert"></div></form>
);var accountholderName = document.getElementById('name');var accountholderEmail = document.getElementById('email');// Redirects away from the clientconst{error}=await stripe.confirmBancontactPayment('{{PAYMENT_INTENT_CLIENT_SECRET}}',{
payment_method:{
billing_details:{
name: accountholderName.value,
email: accountholderEmail.value,},},
return_url:'https://example.com/checkout/complete',});if(error){// Inform the customer that there was an error.}
SEPA ダイレクトデビットの決済手段 ID は、レスポンス内の payment_method_details にある generated_sepa_debit ID になります。
{"latest_charge":{"payment_method_details":{"bancontact":{"bank_code":"VAPE","bank_name":"VAN DE PUT & CO","bics":"VAPEBE22","iban_last4":"7061","generated_sepa_debit":"pm_1GrddXGf98efjktuBIi3ag7aJQ","preferred_language":"en","verified_name":"Jenny Rosen"},"type":"bancontact"},},"payment_method_options":{"bancontact":{}