- This topic has 9 replies, 3 voices, and was last updated 6 months, 1 week ago by Fab.
- March 22, 2022 at 10:37 am #1277870FabParticipant
Wordpress: 5.9.2 (Installation by download via FileZilla (not by tool provided by the hosting provider))
Oceanica theme: 2.0.4
Oceanica Child theme: 1.0.0
Oceanica Engine: 0.0.1
Hotel Booking: 4.2.1
One Click Demo Import: 3.0.2 (Disabled after import)
Hotel Booking PDF Invoices: 1.2.1
Hotel Booking Notifier: 1.1.2
Hotel Booking Reviews: 1.2.6
Hotel Booking Styles: 1.0.2
I try to test the Sandbox mode with Stripe.
“Pay by CB” and “Sandbox mode” are activated.
The Stripe public and secret keys have been entered.
I leave blank the “Webhook Secret” field.
And I noted that when I try to access to the Webhooks destination URL (https://website.fr/index.php?mphb-listener=stripe) I obtain the error: “This page isn’t working
If the problem continues, contact the site owner.
HTTP ERROR 400”.
Now when I confirm a booking and that I select “Pay by CB”, I can enter the CB data:
Zip code: 50000
By clicking on “book now” button, the spinning waiting image is displayed but nothing happens, I stay on the same page and the “book now” button is clickable again.
There is no errors in the logs.
Apparently I forgot something but what? The “Webhook Secret” field is mandatory?
Thank you in advance for any help.
FabMarch 23, 2022 at 6:13 am #1278413Valerie BextorModerator
Try to clear your browser cache and cookies.
The WebHook Secrete is needed only if you are going to enable additional payment methods under Stripe like Ideal, Sofort, Giropay, etc.March 23, 2022 at 6:51 am #1278447FabParticipant
Thank you for your reply.
I tried again after deleting cache and cookies unfortunately this does not change anything.
I tried with Firefox (98.0.1) and Opera (84.0.4316.42), and even disabling plugins (uBlock Origin, etc.) but I obtain the same result.
Do you have another idea, please?
FabMarch 23, 2022 at 7:51 am #1278504Valerie BextorModerator
Please check your Secrete and Public https://stripe.com/docs/keys#obtain-api-keys.
/index.php?mphb-listener=stripeshould be added to your site’s address
Is this your site URL https://website.fr ? Make sure to have the correct link with
index.php?mphb-listener=stripein the URL of your Stripe account Webhook details.
To enable any of the Stripe Payment Methods that I mentioned earlier, you should add Webhook Secret via Accommodation > Settings > Payment Gateways > Stripe > Webhook Secret.
Webhook endpoints are configured in the Dashboard’s Webhooks settings page.
Please, make sure to have these Event types for Webhook Secret are in your Stripe account:
source.chargeable charge.succeeded charge.failed source.canceled source.failedMarch 23, 2022 at 1:49 pm #1278588FabParticipantThis reply has been marked as private.March 23, 2022 at 1:54 pm #1278782J. DavisKeymaster
Thanks for your reply. Yes, you are right there is no need to add WebHook Secret if none of the additional payment options under Stripe are enabled.
Unfortunately, there is activated Under Construction mode and we can not reach the booking confirmation page to view the developer log console. Is there any way to make your site public? Or could you please submit a ticket and let us check your site?
J. DavisMarch 24, 2022 at 2:25 am #1278935FabParticipantThis reply has been marked as private.March 24, 2022 at 3:07 am #1278952FabParticipantThis reply has been marked as private.March 24, 2022 at 9:50 pm #1279089FabParticipantThis reply has been marked as private.March 24, 2022 at 10:11 pm #1279517J. DavisKeymaster
Thanks for your replies. Unfortunately, the website is not public still. I’ve re-read your previous messages and noticed that you have used live keys while you are trying to enable sandbox. So you need to use test API keys for a Sandbox mode https://stripe.com/docs/keys. Please try to find test API keys within your Stripe account and try to use them in the settings of the hotel booking plugin.
J. DavisMarch 25, 2022 at 12:36 am #1279553FabParticipant
Hi Mr. Davis,
Thank you very much for your professionalism.
I confirm for the readers of this forum that the true error displayed on the booking confirmation page was “Billing error. e.paymentMethod is undefined mphb.min.js” and was due to the fact that I used the Stripe production public and secret keys for the sandbox mode instead of the test mode keys (I thought it was just the test card numbers that differentiated production mode from test mode. Mea culpa!).
After registration on Stripe, the URL to the test mode keys is https://dashboard.stripe.com/test/apikeys
The URL to the production mode is https://dashboard.stripe.com/apikeys
Thank you again Mr. Davis.
- You must be logged in to reply to this topic.