Stripe unable to create payment

  • Posts: 161
  • Thank you received: 4
3 months 2 weeks ago #358169

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 3.10.12
-- PHP version -- : 8.0
-- Browser(s) name and version -- : chrome

Hi, I purchased the stripeconnect_hikashoppayment plug in,
added the correct details, and it does not complete.
I'm unfamiliar with Stripe and wondering if anyone knows should I be doing something more at the stripe end of things.

also, even though payment failed, the order goes into the customers account as created and lowers stock / availability by 1
then in their account, does not allow to complete payment.
can you advise?
thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81562
  • Thank you received: 13071
  • MODERATOR
3 months 2 weeks ago #358170

Hi,

What error do you get at the end ?

The fact that the order is created is normal. It's created when you click on the "finish" button, before the payment plugin takes on to process the payment. The order's status will then change from "created" to "confirmed" after the payment.
So that someone else doesn't place another order at almost the same time and you end up with two people purchasing the same product with a stock of 1, the stock is decremented at the creation of the order. Then, when the order is cancelled, the stock will be released.
You can potentially have the stock update only after the order is confirmed by changing the "update stock when order is" setting of the HikaShop configuration page, but you risk having orders for which you don't have stock available.

The following user(s) said Thank You: phiddius

Please Log in or Create an account to join the conversation.

  • Posts: 161
  • Thank you received: 4
3 months 2 weeks ago #358184

Hi nicolas
thanks for your reply.
The message at the end is 'unable to create payment'
however, I now believe it is Stripe and not Hikashop.

I managed to get it working using the test keys, therefore it must be something incorrect with the live stripe account.
thanks for the information regarding order status.

Please Log in or Create an account to join the conversation.

  • Posts: 161
  • Thank you received: 4
3 months 2 weeks ago #358189

Hi,
just wondering if anyone is familiar with the stripe integration..
Do I need to set up a stripe connect account to use hikashop?
thanks

Please Log in or Create an account to join the conversation.

  • Posts: 26013
  • Thank you received: 4004
  • MODERATOR
3 months 2 weeks ago #358204

Hello,

You don't need to have access to the "Connect" API in order to use the Stripe V3 plugin.
"Connect" is only required if you want to do multi-vendor with HikaMarket.

The message "unabled to create payment" should come with more detailed log in your HikaShop payment log.
But it could be related to your Stripe account which is not fully activated for the production mode, or some other Stripe account settings issue

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: phiddius

Please Log in or Create an account to join the conversation.

  • Posts: 161
  • Thank you received: 4
3 months 2 weeks ago #358205

Hi Jerome
thanks for your reply.
As the payment log remains empty, this must mean a problem with stripe
so, thanks, I'll go and figure out whats wrong that end.

Please Log in or Create an account to join the conversation.

  • Posts: 74
  • Thank you received: 3
  • Hikashop Business
2 months 1 week ago #359221

Hi Phiddius,

I'm having a similar issue to yourself.

Again, I think it's something to do with Stripe not being set up correctly, so was wondering if you might be able to give me a pointer as to where to start on the Stripe end.

D


DunxMax

The more we learn the less we know.

Please Log in or Create an account to join the conversation.

  • Posts: 161
  • Thank you received: 4
2 months 1 week ago #359224

Hi dunxmax
I tried several times to get it working, but ran out of time, had to go live,
and so I stayed with PayPal Plus, when I can I will return to try and figure it out
but as yet ... I just don;t know

Please Log in or Create an account to join the conversation.

  • Posts: 74
  • Thank you received: 3
  • Hikashop Business
2 months 1 week ago #359228

Thanks Phiddius,

Yeah, it's not particularly obvious is it?

I'll let you know if I work it out myself.

Cheers

D


DunxMax

The more we learn the less we know.

Please Log in or Create an account to join the conversation.

  • Posts: 26013
  • Thank you received: 4004
  • MODERATOR
2 months 1 week ago #359234

Hello,

Since you can't see any log from the HikaShop Payment log, the message should be generated by StripeJS.
Which means that the Stripe server communicates with the client (the javascript) and send the error, which cannot be catch by the plugin since it does not go through your server (which is in a way the security behavior of StripeJS).
And since the issue cannot be reproduce with the test account, it's more difficult to perform analysis.

We can hope that the JavaScript lib will display some content in the browser console.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 74
  • Thank you received: 3
  • Hikashop Business
2 months 1 week ago #359252

Thanks for the info. It sort of helped.

I went into Stripe "Payments" tab and found why the payment hadn't worked (see screenshot) - price of product was too low. It was a testing product set at 0.01 - needs to be set above 0.50.

All working now.

Also, just a bit of additional info for anybody else who's a little bit stuck with Stripe, if Stripe is in test mode, you need to use the test cards. See here: docs.stripe.com/testing


DunxMax

The more we learn the less we know.
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26013
  • Thank you received: 4004
  • MODERATOR
2 months 1 week ago #359265

Hello,

Thanks for your feedback.

The $0.50 (or 0.50€) issue is a common issue that we also added in our documentation long time ago (section "Tip") but the documentation page contains lots of information and it's still difficult to see it.
www.hikashop.com/support/documentation/2...ipeconnect-form.html

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 2 months 1 week ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 74
  • Thank you received: 3
  • Hikashop Business
2 months 1 week ago #359267

Yes, fair point. Unfortunately, I suffer from the common problem of not reading instructions all the way through : ) My apologies for that as well!

Anyway, it's in multiple places now, so perhaps not so painful for the next person.

Thanks

D


DunxMax

The more we learn the less we know.

Please Log in or Create an account to join the conversation.

Time to create page: 0.091 seconds
Powered by Kunena Forum