hypejunction / payments_stripe
Stripe payments integration
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:elgg-plugin
Requires
- php: >=5.6
- composer/installers: ~1.0
- hypejunction/countries: *
- hypejunction/payments: ~2.0
- stripe/stripe-php: ~4.1
This package is auto-updated.
Last update: 2020-01-29 03:50:15 UTC
README
Features
- API for handling payments via Stripe
Acknowledgements
- Plugin has been sponsored by [Social Business World] (https://socialbusinessworld.org "Social Business World")
Notes
Example
See actions/payments/checkout/stripe.php for usage example.
Payment Status
You can use 'transaction:<status>', 'payments'
hooks to apply additional logic upon payment status changes.
Payments are synchronous and do not require a user to be forwarded to another location.
Web hook events
Make sure to setup the webhooks via your Stripe dashboard. Webhook URL is listed in plugin settings.
Charge-related hooks will be digested by the plugin automatically. Other web hook event data can be digested with 'digest:webhook', 'stripe'
plugin hook.
SSL
- Your site must be served over HTTPS for the API requests and webhooks to work as expected
Credentials
- Login at https://stripe.com and create an account
- Copy secret and publishable keys from Stripe Account settings > API keys to plugin settings
- Add webhook endpoints via Stripe Account settings > Webhooks > Add endpoint (the endpoint URL is listed in plugin settings)
Testing
- You make test payments using card numbers listed here: https://stripe.com/docs/testing#cards
- You can see test payments by toggling your Stripe dashboard to Test mode
Forms/Actions
To display card information input form, use:
// in your form echo elgg_view('input/stripe/card'); // in your action $token = get_input('stripe_token');