Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

peterespana

Pioneers
  • Posts

    37
  • Joined

  • Last visited

Posts posted by peterespana

  1. On 10/2/2019 at 2:18 AM, asro2004 said:

    Module has been updated to 1.0.12 to fix some issues with the stripe payment amount apparent when used in conjunction with some odler discount modules. Also, a problem with duplicate orders in 'preparing' state being created when the customer returns to the cart from the payment page.

    @peterespana, please use the 'send test webhook...' link in the stripe dashboard to check the link to the webhook on your server. It should show a 400 response code, with the message 'Invalid webhook signature: No signatures found matching the expected signature for payload'. If that is ok, please double check you stripe configuration 'transaction method' is set to 'capture' and not authorise. If that's the problem, it won't send to the webhook until you capture the payment in the stripe dashboard.

    @asroo2004, it's set to capture and webhook log says 200 OK. The payment comes in alright. Only the status remains "preparing' instead of processing. Clients gets his confirmation, but the order isn't in the order history of the client.

    Maybe you have an idea where to look for this problem.

    Thanks and regards, Peter.

  2. On 9/27/2019 at 1:03 PM, raiwa said:

    Updated and tested on my live site and all ok. Discount Codes BS also fine.

    Just one minor issue:

    In the Marketplace description it says:
     

    Should be:

     

    Hi Raiwa, it all seems to work fine, also the discount coupons are working perfectly. But, the status of the payment always remains as: Preparing [Stripe SCA]. 

    Stripe does get the payment. And the client gets his confirmation. But does not see his order in the order history.

    If indicated in the module that after payment status should be processing...

    Hope you have an idea.

     

    Thanks!! Peter.

  3. 23 minutes ago, raiwa said:

    Sorry, that's another one which I have no idea about. If you do not get it to work, try the one I referred to.

    It's working fine in the admin area the discount is now showing, as it should be.

    EUR 4.99
    Discount Coupon R4WY99R9 applied: -EUR 0.50
    Sub-Total: EUR 4.49
    Regular mail: EUR 2.36
    Total: EUR 6.85

    But not on the order confirmation. Only the item(s), no shipping, no discount and no total. 

    phs (B122512) = EUR 4.99
    ------------------------------------------------------

    Delivery Address
    xxxxxxxx
    xxxxxxxx



     

     

    Thanks, step by step we are getting there :)

     

    Regards Peter

     

     

  4. 1 hour ago, raiwa said:

    Hello Peter,

    Here the modified file, based on v. 1.0.10, which includes the code for the Discount Coupon module. It is for Discount_Codes_5.1.0_Phoenix and higher which uses hook.

    If you have a lower version, just paste the same code you are using in checkout_process.php in place of the hook call lines 113-119.

    stripe_sca.php

    Please confirm and I'll upload the update including this support.

    Thanks and kind regards
    Rainer

    Hello Raiwa, thanks so much,

    I use this discount coupon module:

     * discount_coupon.php
     * August 4, 2006
     * author: Kristen G. Thorson
     * ot_discount_coupon_codes version 3.0

     

    Thanks Peter

  5. 1 minute ago, raiwa said:

    Please try the version 1.0.9 I posted above. It should solve the order status issue.

    Discount codes need additional support, I will update the discount coupon addon (and other addons I'm maintaining) with the required support when this stripe module is stable.

    Thanks Raiwa for the good work. I give it a try later.

  6. Stil some issues here....

    I can now make a payment with version 1.0.8
    Looks like it all finishes normally. But, it stays in Stripe as uncaptured. And no payment info in the admin area: remains as preparing....

    I use a discount code coupon module, the discount is not visible in the order.

    And last it ads more VAT, I have 1.61157 shipping +21% VAT = 1,95. This module ads 21% to 1,95.

     

    Thanks for all the help, it's much appreciated.

  7. 5 minutes ago, mhsuffolk said:

    Have you installed version 1.0.7

    It has had many English message labels moved to a language file, has that been missed?

    Yes i did install the version 1.0.7. I now checked the language file and it's there in the English folder.

  8. 11 hours ago, asro2004 said:

    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.

    I got a lot further now..... I could make a payment, but after entering my creditcard number it stuck, page can not be displayed.... But the payment came in. But order still is preparing, not processing. No payment info in the admin area. And no order confirmation. 

     

    This page is not working

    xxxxxx.com kan dit verzoek momenteel niet verwerken.

    HTTP ERROR 500
     
     
     

    Any ideas where to look for this problem?

    The module also looks strange:

     

     

    Knipsel.JPG

  9. On 9/16/2019 at 7:17 AM, asro2004 said:

    @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.

     

     

     

  10. On 9/16/2019 at 2:28 PM, mhsuffolk said:

    When you get to the checkout_confirmation page, before you have even entered a card number, you should have Preparing [Stripe SCA] in your admin and in the Stripe Dashboard under Developers/logs  you should have a log entry like this. What do you get?

    image.png.ed91136e22831a05a385ff474b1ac74a.png

    Click on the row and you should have this.

    image.png.16b9a61591ffff4de39db7949eb69101.png

    Order is visible in admin (preparing Stripe SCA). This is the stripe log:

     

    image.png.583853ccc1d6057ae5932269adf3941f.png

     

    Sometimes (not always) I have that with a PayPal payment as well, an order (pending payment) is made. Payment comes in, but no order confirmation and stock remains unchanged. Like there was no order. But payment is done.

    Do you know what file may cause this? I guess it has to do with the same issue here.

     

    Thanks a lot!

    Regards Peter

     

  11. 6 hours ago, asro2004 said:

    @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.

    Hi, again thanks for your patience with me...

    Stripe return the values in the response body. That looks all normal.
    I checked the id-secret in the page, it's there. But the error persists (IntegrationError: Invalid value for stripe.handleCardPayment intent secret: value should be a client_secret string. You specified: undefined.)

    No script errors, nothing in the apache logs.

    Any more ideas? Regards Peter

  12. 7 hours ago, peterespana said:

    This is the log that appears:

     

    ID
    req_LWmdlGmOiCG4W6
    Time
    9/14/19, 7:01:22 AM
    Method
    POST
    URL
    /v1/payment_intents/pi_1FITLjK4kydItoIjO
    Status
    200
    IP address
    81.169.144.135
    Version
    Source
    Stripe/v1 PhpBindings/6.43.0
    Related
    payment_intent 
     
     
    Thanks!!
    Peter

    Removed the module and installed 1.06.

    But still the same error: IntegrationError: Invalid value for stripe.handleCardPayment intent secret: value should be a client_secret string. You specified: undefined.

    Thanks.

    Log files says:

    ID
    req_MhL0nXN5BhCHOB
    Time
    9/14/19, 2:10:44 PM
    Method
    POST
    URL
    /v1/payment_intents
    Status
    200
    IP address
    81.169.144.135
    Version
    Source
    Stripe/v1 PhpBindings/6.43.0
    Related
    payment_intent  pi_1FIa5
  13. 5 hours ago, asro2004 said:

    @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.

    This is the log that appears:

     

    ID
    req_LWmdlGmOiCG4W6
    Time
    9/14/19, 7:01:22 AM
    Method
    POST
    URL
    /v1/payment_intents/pi_1FITLjK4kydItoIjO
    Status
    200
    IP address
    81.169.144.135
    Version
    Source
    Stripe/v1 PhpBindings/6.43.0
    Related
    payment_intent 
     
     
    Thanks!!
    Peter
  14. Yes I did,. It has 3 fields for the live module and another 3 for the test module. I made webhooks for live and test. Filled al 6 keys in.

    I tried both, but always the same error when I try to make a payment.

     

    Thanks so much for your help!

  15. Hi, thanks for the great work.

    I get this error trying to create a payment:

    IntegrationError: Invalid value for stripe.handleCardPayment intent secret: value should be a client_secret string. You specified: undefined.

    A webhook was made, secret key inserted in the module.....

     

    Any ideas?
    Thanks Peter.

     

  16. Keep getting all kind of errors about variables;

    examples;


    Notice: Undefined variable: action in /homepages/25/d330559203/htdocs/shop/adplus/ebay_orders.php on line 38

    /homepages/25/d330559203/htdocs/shop/adplus/includes/functions/html_output.phpon line 48

    Notice: Undefined variable: b in /homepages/25/d330559203/htdocs/shop/adplus/ebay_orders.php on line 277

     

    Notice: Trying to get property of non-object in /homepages/25/d330559203/htdocs/shop/adplus/ebay_sold_list.php on line 181

    Notice: Trying to get property of non-object in /homepages/25/d330559203/htdocs/shop/adplus/ebay_sold_list.php on line 186

    Notice: Trying to get property of non-object in /homepages/25/d330559203/htdocs/shop/adplus/ebay_sold_list.php on line 187

     

     

     

    Anyone any idea how to get this great add on working correctly?

     

    Thanks

    Peter

×
×
  • Create New...