Skip to content

Wordpress & Stripe API for STRIPE BACS (supports user specified amount).

License

Notifications You must be signed in to change notification settings

SilverKenn/stripe-bacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

IBM Payment

Wordpress & Stripe API for different payment method types (supports user specified amount).

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

Version 1.1.0

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>

alt text

Version 1.0.1

User define payment

<div style="max-width:450px;margin:0 auto">
[stripe-bacs-button Title="My App Payment"]
</div>

alt text

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>

alt text
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>

alt text

Webhook
Make sure to generate a webhook when using subscription under settings page on theme opt alt text

About

Wordpress & Stripe API for STRIPE BACS (supports user specified amount).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published