juanvillegas / s2-stripe Goto Github PK
View Code? Open in Web Editor NEWS2 Stripe - Thin layer between S2 Member and Stripe.com payments
S2 Stripe - Thin layer between S2 Member and Stripe.com payments
Hi Juan
I am trying to test the s2 Stripe payment system, however, in the plugins list in admin the S2 plugin shows as RED, Also, when I try change the settings to the TEST API and save I get a 404 error ... do you know why this may happen ?
Regards
Richard
Juan,
This is looking really good already! But I have found the following errors using Query Monitor:
Undefined offset: -1
Location: wp-content/plugins/s2-stripe-master/s2-stripe.php:672
Call Stack: S2_Stripe::getStripePlans()
S2_Stripe->build_options_view()
do_action('settings_page_s2-stripe')
Plugin: s2-stripe-master
Trying to get property of non-object
Location: wp-content/plugins/s2-stripe-master/s2-stripe.php:672
Call Stack: S2_Stripe::getStripePlans()
S2_Stripe->build_options_view()
do_action('settings_page_s2-stripe')
Plugin: s2-stripe-master
Undefined index: map
Location: wp-content/plugins/s2-stripe-master/views/options.php:102
Call Stack: S2_Stripe->build_options_view()
do_action('settings_page_s2-stripe')
Plugin: s2-stripe-master
Thanks for the plugin! There is a url hard coded into the custom parameter. If you replace with your own, things work good.
This is a question I got via email from a user/developer, that other people may find it interesting. Below is my reply:
pleased to meet you. amm well the Paypal's IPN interface is what S2 Member authors have suggested to use to implement a custom payment gateway. And its indeed very simple once you get into the details of how it works.
To make it short: the S2 Stripe is a layer between S2 Member IPN Interface and your Stripe account. When the user pays using the form, the payment is attempted first in Stripe (using its api of course). If the payment succeeds, the plugin uses the IPN interface to "simulate" a subscription event on S2 Member. This way, as long as S2 Member is aware of, the result is exactly the same as if the user had used the provided paypal forms/buttons!
The only difference is that the S2 Member we created will have a lifelong membership. But in your Stripe dashboard, the customer will have whatever plan he had subscribed too (monthly, weekly, whatever). Suppose its monthly: at the end of the month, Stripe will attempt to charge the customer's card: if it fails several times (eg: no funds), it will ping S2 Stripe plugin to notify that the user should be demoted. And the S2 Member is therefore demoted to the free membership.. completing the cycle
Hi Juan,
is there a way to use your plugin fr one-time payments, not Subscriptions/Plans?
Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.