Shortode
[stripe-bacs-button]
[stripe-button] - added since 1.1.0, fallback support for [stripe-bacs-button]
Shortcode accepted args
title
- will show as the Payment name on payment capture page (only applies to user define amount).
price_id
- stripe price ID under product.
subscription
- required for subscription price, value must be 1
, (requires webhook connection)
one_time
- additional (one-time) payment item for subscription payment - only supported when payment is subscription
with_coupon
- show coupon field, value must be 1
, only work if the payment is subscription
success_url
- override success url from settings page and applies to current session
cancel_url
- override canceled url from settings page and applies to current session
type
- added since 1.1.0, comma separated payment modes types, supported payment method listed here https://stripe.com/docs/api/payment_methods/list#list_payment_methods-type
Examples
Subscription payment with coupon support and CARD, BACS_DEBIT,SEPA_DEBIT payment method support
<div style="max-width:450px;margin:0 auto">
[stripe-button title="Subscription Plan Price" price_id="price_0HamOS7DONTkfswqcpYXjPLB" subscription="1" with_coupon="1" success_url="http://site.me/confirm" cancel_url="http://site.me/canceled" type="card,bacs_debit,sepa_debit"]
</div>
User define payment
<div style="max-width:450px;margin:0 auto">
[stripe-bacs-button Title="My App Payment"]
</div>
One time payment from stripe product
<div style="max-width:450px;margin:0 auto">
[stripe-bacs-button title="One-Time Product Price" price_id="price_0HamOS7DONTkfswqdgPEYvmM"]
</div>
Subscription payment with coupon
<div style="max-width:450px;margin:0 auto">
[stripe-bacs-button title="Subscription Plan Price" price_id="price_0HamOS7DONTkfswqcpYXjPLB" subscription="1" with_coupon="1" success_url="http://site.me/confirm" cancel_url="http://site.me/canceled"]
</div>
Webhook
Make sure to generate a webhook when using subscription under settings page on theme opt