Jump to content
asro2004

Stripe v3 module for SCA

Recommended Posts

@asro2004

Module works perfectly, thank you for your endeavours again.

I notice that the Stripe website talks about Apple Pay, Google Pay and Samsung Pay. Are these options available in the existing addon? If not is this possible? Stripe talk about APIs for these but it is all above my pay grade.


Live Phoenix 1.0.4.3 on PHP 7.3

Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix 1.0.4.0) here.

Share this post


Link to post
Share on other sites

I've updated the module to version 1.0.13 to remove a potential SQL injection and tidy the account saved cards display when there are multiple cards (thanks @Smoky Barnable).

@mhsuffolk I'm afraid the current version does not support Apple Pay, etc but looking at the Stripe documentation, it does not look too difficult to add. It just involves adding an extra HTML element to host a 'Payment Request' button which is displayed for certain compatible browsers, and some javascript and server code to support the creation and processing of a 'PaymentRequest' in a similar fashion to the handling of the 'PaymentIntent' in the current version. I'll add it to my list of things to do.

Share this post


Link to post
Share on other sites

I recently installed the latest update and since then have noticed that on the store invoice the Total and figure are above the Shipping costs and the Sub total. Is it just me or should they be the other way around with the sub total, then the shipping then the total.  Looking back through previous orders with the Stripe payment module the order was correct. All other payment modules show correctly on my altered invoice layout.

Image to show difference below.

invoice-totals-latest.jpg

invoice-totals-old.jpg

Edited by 14steve14

REMEMBER BACKUP, BACKUP AND BACKUP

Get the latest Responsive osCommerce CE (community edition) here

It's very easy to over complicate what are simple things in life

Share this post


Link to post
Share on other sites

I'm confused.  I've installed stripe_sca on my Phoenix 1.0.4.0 store and everything appears to work OK.  However, I noted this in an earlier post:

Quote

implemented authorise only transactions. Authorised transactions have to be captured using the Stripe dashboard, which will then fire the call to the webhook and complete the order

So, I could not tell anything in Phoenix Admin after successfully processing a shopping cart.  I kept trying to update the order status to something that would call the webhook, to no avail.  So, after seeing the post with the quote above, I went to Stripe's dashboard and saw that there was a button to "Capture" the credit card payment.  That registered a successful call to the webhook and it looks like I finally got the money (in test mode).

I rarely, if ever, visited the Stripe site in managing my existing 2.3.4 store.  Is there nothing that will call the webhook from Phoenix?  Do we have to visit Stripe to capture the payment every time we get a credit card purchase?

Probably I'm missing something, as usual ...

Share this post


Link to post
Share on other sites
4 minutes ago, mhsuffolk said:

In the Stripe module in your website's admin change authorise to capture. 

Excellent!  My next test order was Prepared, Transacted, and Received all in one fell swoop!

I figured I was missing something.  Thanks!

Share this post


Link to post
Share on other sites
On 12/4/2019 at 11:08 PM, 14steve14 said:

I recently installed the latest update and since then have noticed that on the store invoice the Total and figure are above the Shipping costs and the Sub total. Is it just me or should they be the other way around with the sub total, then the shipping then the total.  Looking back through previous orders with the Stripe payment module the order was correct. All other payment modules show correctly on my altered invoice layout.

Image to show difference below.

invoice-totals-latest.jpg

invoice-totals-old.jpg

Please check the sort order of the totals in Modules ~ Order Totals. If all the totals have the same sort order number, that could cause the totals to be in different sequence under different circumstances, depending on what previous queries mysql had run and how it had managed it's cache.

The order totals are saved to the database in includes/modules/payment/stripe_sca.php lines 207-214, with the configured sort order, and the order email totals are output in lines 491-493 of that module. The $order_totals variable is set in checkout_process.php using the output of order_total->process(). That prepares the totals in the sequence in which the totals appear in the database configuration table, record with the configuration_key: MODULE_ORDER_TOTAL_INSTALLED. So the email prepared by the stripe_sca module should have the sub totals in the sequence in the configuration table record, but if the order is reprinted from the administration order screen, the totals could be out of sequence if the sort order had not been set.

The customer email should be ok, and the problem only occur when the order is re-printed.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×