Jump to content

asro2004

Members
  • Content count

    26
  • Joined

  • Last visited

Profile Information

  • Real Name
    Alastair Robertson
  • Location
    Auckland, NZ

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. asro2004

    Stripe v3 module for SCA

    I have fixed a couple of issues where stripe errors were not being shown to the user. Nothing else changed from 1.0.9 The market place app has been updated to 1.0.10.
  2. asro2004

    Stripe v3 module for SCA

    1.0.8 has been uploaded to the market place. It fixes missing customer emails, and order status history information. If would be a good idea to copy the entire contents of the ext and includes folders in the update to the corresponding folders of the store to ensure that all files get to the right places.
  3. asro2004

    Stripe v3 module for SCA

    Thanks, they have been fixed in 1.0.7
  4. asro2004

    Stripe v3 module for SCA

    I'm pretty sure the problem is something in the checkout_confirmation.php form. Raiwa had provided some refactoring to the handling of order processing, moving it from the webhook to the payment module, so I took the opportunity to re-check the javascript in the checkout-confirmation.php page, and removed some redundant fields and a dependency on a specific class name on the button. It was possible that a custom theme may disrupt the completion of the payment process, so this could fix it if that was the case for you. I reset the configuration and re-installed the module from scratch on a standard system, and then re-run tests for new cards, saving a new card, and using a saved card, and all worked ok. Please download and install the latest version 1.0.7 from the market place. All files should be replaced. If still no luck, please PM me a copy of the page source of checkout_confirmation.php page.
  5. asro2004

    Stripe v3 module for SCA

    Is that the 'Manage save cards' in the my account page? Please check your PHP or Apache/Nginx web site log for any errors. The account page is loading the code from includes/modules/content/account/cm_account_stripe_sca_cards.php, with the English text from includes/languages/english/modules/content/account/cm_account_stripe_sca_cards.php
  6. asro2004

    Stripe v3 module for SCA

    @peterespanaWere you able to see the stripe_event_log mysql table in your store database? It should create a row with the 'action' 'page create intent', and a request something like: {"amount":"7500","currency":"USD","setup_future_usage":"off_session","capture_method":"automatic","metadata":{"customer_id":"26","order_id":"2640","company":"","product_1_name":"Grillage for 6 beam 3 span bridge","product_1_model":"","product_1_id":"72{6}14","product_1_qty":"1","product_1_price":"75.0000","product_1_tax":0}} and the response should be the payment intent object returned by stripe, or an error message. You should see a line in the response 'client_secret', and it is that value that is placed in a hidden field in the payment form by the code in the confirmation function of stripe_sca.php. With the error message you are getting, would suggest an error response from Stripe when the intent is created, but your Stripe log shows a response code 200. Try looking in your PHP error log, or Apache/Nginx log, or check the browser console for any javascript error. Have a look at the page source of the checkout_payment.php page, and search for id="secret". The value of that field should be the client secret returned by Stripe in the payment intent object.
  7. asro2004

    Stripe v3 module for SCA

    It's probably easiest to just overwrite all of them.
  8. asro2004

    Stripe v3 module for SCA

    @raiwa, @mhsuffolk, @peterespana The hanging and failure to complete the transactions was due to the apiKey not being set correctly in payment_intent.php and webhook.php. It was only working for those who had installed the module before 1.0.5 because it was using the configuration key generated in the earlier release. I have re-tested by deleting the earlier configuraition keys and re-running transactions with new card with and without saving, and a saved card, and all seems ok now. I've updated the market place module with 1.0.6
  9. asro2004

    Stripe v3 module for SCA

    @raiwaI think the email problem may be in the $OSCOM_Hooks call immediately prior to generating the email. If there was a PHP error in there, that would stop it sending the customer email. I'll add the '$order_total_modules->process();' to the next release. You should find the card prompts have been fixed in 1.0.5.
  10. asro2004

    Stripe v3 module for SCA

    @peterespana, the error relates to the 'client secret' that is generated by stripe when the payment intent is created. In this module, that is in the includes/modules/payment/stripe_sca.php code, around line 375. It checks if it has a global stripe intent id set, which it would if the customer had made changes to the cart or other order details, in which case it retrieves the intent created when the customer first got to the page, and updates it with the current amount, currency and billing details in case any has changed. If it's the first time to the page, a new payment intent is created. In either case, the Stripe API returns a payment intent object that includes a new 'client secret' id that has to be put in the payment form, for the javascript code to use to link the card details entered by the customer with the store so the store can be informed of the payment result via the web hook. It sounds like it is not getting a successful payment intent created. I'd suggest turning on the 'log events' in the module configuration, retrying the payment, and then check the stripe_event_log' table. You should see a row with the action, 'page create intent', and the response field should contain a message indicating the problem.
  11. asro2004

    Stripe v3 module for SCA

    @MikepoNot sure about that, I thought it might be a phoenix thing because I had only tested with an older version, but I just retested with Phoenix 1.02 and it works there. Could it be some custom theme you have for your store that is getting in the way?
  12. asro2004

    Stripe v3 module for SCA

    @14steve14 @mhsuffolk I agree it does not look great, and I was not sure how to adjust the look at the time, but I've just done some experimenting, and ignoring the Stripe documentation at https://stripe.com/docs/payments/cards/collecting/web which suggests creating a javascript variable containing the style and passing that to the elements.create function, I think it is easier to insert a <style> block before the <script src="https://js.stripe.com/v3/"></script> line at line 861 in includes/modules/payment/stripe_sca.php, so the code looks like: That makes the card area similar to the card name and it becomes a lot more obvious to us old folks.
  13. asro2004

    Stripe v3 module for SCA

    Oh, good grief. Some days I should just stay in bed. It is still using the old webhook secret in the webhook.php code.
  14. asro2004

    Stripe v3 module for SCA

    The webhook detail at the stripe dashboard should show the response received from your web site's webhook.php. That would be a PHP formatted error page if there was a PHP error encountered when the webhook.php was processed. But if you're getting 400 error, that suggests the URL in the stripe dashboard is not right. In test data mode at the stripe dashboard, you can send a test message to the webhook. If you are not getting a 200 response, it cannot reach the webhook using that url. When the connection is eventually made, the order will complete. I put the DIR_FS_CATALOG into the requires because I was having a problem with the language file not being loaded, and I thought I'd better make it consistant with the paypal standard_ipn.php.
  15. asro2004

    Stripe v3 module for SCA

    Another update to fix some issues: fix missing payment method in customer order confirmation email separate web hook signing secrets for test and live attempt to resolve 'cannot access empty property' error in stripe_sca.php, line 393 After installing the update, please go directly to the module configuration and re-enter the web hook signing secret for both test and live environments stripe_sca_v1.0.3.zip
×