Skip to main content

#123 Payment Processing doesn't take it to stripe website to process the payment.

Posted in ‘Stripe Checkout for VirtueMart’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information (available for public)

PHP version
7.4

Latest post by b2z on Friday, 09 August 2024 09:26 EEST

rupas_consultancy

Hi, 

My name is Sushil.

I just bought Stripe Checkout extension today.

I installed it on the following website: https://rupasconsultancy.com/management/

This website is installed within another Joomla website: https://rupasconsultancy.com

I have face issue with the formatting of this plugin at the backend. When I configure this Payment Method, it show the Language Constants but not its values.

This is also true when a payment is processed in frontend when I choose Stripe Payment Gateway. On the final screen, it show Language constants instead of its values.

Also the Payment Processing doesn't take it to stripe website to process the payment.

I have provided the details as has been mentioned above.

Please take a look and help me solve these concerns.

 

Regards

b2z

Hi Sushil,

Language Constants - yes, there is an issue witht them. This is fixed and new dev version installed on your website.

Regarding redirect to Stripe website - I have checked your website and confirm that the redirect does not happen, but I cannot find any erorrs. I see that Stripe is initializing correctly and click should be processed by Stripe script, but for some unknown reason this does not happen or happen in the strange way.

Do you have any errors in the Stripe dashboard?

Also we advice to enable Test mode first in the Stripe dashboard then test the payments and only after successful tests go to Live mode,

Kind regards,

Dmitrijs

rupas_consultancy

Thank you for your kind response.

As per your suggestion, I tried to access the details in the Stripe Dashboard for errors.

Following is the status of the request made by the website to the webhook. 

Please note that I have replaced sensitive information with multiple "x".

========================================================================= 

POST /v1/checkout/sessions
 
 
Status
200 OK
ID
req_xxxxxxxxxxxxxx
Time
7/31/24, 12:37:39 PM
IP address
1XX.XXX.xxx.xxx
API version
 
 
2023-10-16
Source
Stripe/v1 PhpBindings/13.9.0 Joomla - Stripe Checkout for VirtueMart/1.1.1 (https://norrnext.com)
Idempotency
Key — xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 

----------------------------------------------------------------------------------------------------------

Response body 
{
 
  "id": "cs_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
 
  "object": "checkout.session",
 
  "after_expiration": null,
 
  "allow_promotion_codes": null,
 
  "amount_subtotal": 590,
 
  "amount_total": 590,
 
  "automatic_tax": {
 
    "enabled": false,
 
    "liability": null,
 
    "status": null
 
  },
 
  "billing_address_collection": null,
 
  "cancel_url": "https://xxxxxxxxxxxxxxxxxxxxxxxx.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginUserPaymentCancel&pm=3&on=ADU2010",
 
  "client_reference_id": "23",
 
  "client_secret": null,
 
  "consent": null,
 
  "consent_collection": null,
 
  "created": 1722409659,
 
  "currency": "inr",
 
  "currency_conversion": null,
 
  "custom_fields": [
 
  ],
 
  "custom_text": {
 
    "after_submit": null,
 
    "shipping_address": null,
 
    "submit": null,
 
    "terms_of_service_acceptance": null
 
  },
 
  "customer": null,
 
  "customer_creation": "if_required",
 
  "customer_details": {
 
    "address": null,
 
    "email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@gmail.com",
 
    "name": null,
 
    "phone": null,
 
    "tax_exempt": "none",
 
    "tax_ids": null
 
  },
 
  "customer_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx@gmail.com",
 
  "expires_at": 1722496059,
 
  "invoice": null,
 
  "invoice_creation": {
 
    "enabled": false,
 
    "invoice_data": {
 
      "account_tax_ids": null,
 
      "custom_fields": null,
 
      "description": null,
 
      "footer": null,
 
      "issuer": null,
 
      "metadata": {
 
      },
 
      "rendering_options": null
 
    }
 
  },
 
  "livemode": true,
 
  "locale": null,
 
  "metadata": {
 
    "order_id": "23"
 
  },
 
  "mode": "payment",
 
  "payment_intent": null,
 
  "payment_link": null,
 
  "payment_method_collection": "if_required",
 
  "payment_method_configuration_details": {
 
    "id": "pmc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
 
    "parent": null
 
  },
 
  "payment_method_options": {
 
    "card": {
 
      "request_three_d_secure": "automatic"
 
    }
 
  },
 
  "payment_method_types": [
 
    "card"
 
  ],
 
  "payment_status": "unpaid",
 
  "phone_number_collection": {
 
    "enabled": false
 
  },
 
  "recovered_from": null,
 
  "saved_payment_method_options": null,
 
  "setup_intent": null,
 
  "shipping_address_collection": null,
 
  "shipping_cost": null,
 
  "shipping_details": null,
 
  "shipping_options": [
 
  ],
 
  "status": "open",
 
  "submit_type": null,
 
  "subscription": null,
 
  "success_url": "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&pm=3&on=ADU2010",
 
  "total_details": {
 
    "amount_discount": 0,
 
    "amount_shipping": 0,
 
    "amount_tax": 0
 
  },
 
  "ui_mode": "hosted",
 
  "url": "https://checkout.stripe.com/c/pay/cs_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
 
}
Request POST body 
{
 
  "cancel_url": "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginUserPaymentCancel&pm=3&on=ADU2010",
 
  "client_reference_id": "23",
 
  "customer_email": "xxxxxxxxxxxxxxxxxxxxxxxxx@gmail.com",
 
  "line_items": {
 
    "0": {
 
      "price_data": {
 
        "currency": "inr",
 
        "product_data": {
 
          "name": "PLG_VMPAYMENT_VMSTRIPECO_PRODUCT_NAME"
 
        },
 
        "unit_amount": "590"
 
      },
 
      "quantity": "1"
 
    }
 
  },
 
  "metadata": {
 
    "order_id": "23"
 
  },
 
  "mode": "payment",
 
  "payment_intent_data": {
 
    "description": "VirtueMart: ADU2010"
 
  },
 
  "success_url": "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&pm=3&on=ADU2010"
 
}

===============================================================================

I wish to inform that I had a word with Stripe Support as well. They informed me about the status "200K" as good.


Following is the configuration of the webhook on the stripe dashboard.
=========================================================================
Response body
{
  "id": "we_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "object": "webhook_endpoint",
  "api_version": null,
  "application": null,
  "created": 1722311366,
  "description": "Stripe International Checkout",
  "enabled_events": [
    "checkout.session.completed",
    "checkout.session.async_payment_succeeded",
    "checkout.session.async_payment_failed",
    "charge.refunded"
  ],
  "livemode": true,
  "metadata": {
  },
  "secret": "whsec_Ve**************************f45G",
  "status": "enabled",
  "url": "https://xxxxxxxxxxxxxxxxxxxx.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component&pm=3"
}
Request query parameters
{
  "include_only": [
    "id,livemode,metadata,object,secret,status,url,api_version,application,created,description,enabled_events"
  ]
}
Request POST body
{
  "connect": "false",
  "description": "Stripe International Checkout",
  "enabled_events": [
    "checkout.session.completed",
    "checkout.session.async_payment_succeeded",
    "checkout.session.async_payment_failed",
    "charge.refunded"
  ],
  "enumeratively_enabled_all_events_during_creation": "false",
  "url": "https://xxxxxxxxxxxxxxxxxxxxxx.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component&pm=3"
}

==========================================================================
With the above details available, please help with the concerned in previous post.
Also due to some technical problems I had to restore this website to previous day. Due to which the Developer version you had installed is lost.
Please let me know, how can I deal with this. 

b2z

I found that our plugin's JavaScript does not work as it should be. In fact the JavaScript code does not process at all, that is why click on the button does not redirect to the Stripe webpage. That is abnormal behaviour, I did not face such before.

Anyway I tried to put the JavaScript code inline into the "payment_page.php" layout file of our plugin and now it is working. The bad thing is that you will lose this fix on the next plugin update so you need to copy that file to override path of your template.

Also note - you are in the LIVE mode! We strongly advice to enable Test mode first in the Stripe dashboard, then test the payments and only after successful tests go to Live mode.

 

rupas_consultancy

Hello Dmitrijs,

Thank you for your timely reply.

May I ask if I can have this customized plugin as installable plugin with all the changes including Language Constants and customized payment_page.php.

This will help in case, I need to reinstall the plugin.

 

Regards

  

b2z

We will release a new version with fixes and you will be able to download it any time during your subscription period.

Kind regards,

Dmitrijs

b2z

We have released a version 1.1.2 with the fixes. Please update.

Kind regards,

Dmitrijs

Send a reply

This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

 
Support information

Support hours: You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+3), but not limited. Our staff is pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days.


Our time: / Your time:

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. We also ask you to remove temporary credentials at your site after the problem is resolved. Thank you.

Support of free extensions is not provided on this forum. Please submit your questions or report issues via Github tracker. See link on the product page.