Stripe - Requirement for Strong Customer Authentication

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 2 months ago #311175

Hello,

The question has been asked few days ago and I asked more details about the context and the console log.
If the spinner is still there is means that there is an error with a stripe answer or with an HikaShop ajax call.
To fix the problem, we first need to understand how it happens and what did happens before.

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: 30
  • Thank you received: 1
5 years 2 months ago #311177

Hi guys,
i already sent login-data to my site via your support, so you can test that issue live.
just do it ;-)

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

  • Posts: 15
  • Thank you received: 6
  • Hikashop Business
5 years 2 months ago #311181

Jerome,

for solving the the problem of Sophie11 and Bouncer with the Stripe Dashboard description being the (rather unreadable) payment intent ID instead of the order number you could add the "description" field like in the free Stripe V2. Modifying the following function of your plugin should do the job:

private function createPaymentIntent(&$dbOrder, $payment_method_id)

Before creating the intent, insert:
$desc = JText::sprintf('ORDER_NUMBER').' : '.$dbOrder->order_number;

then later in the payment data for the intent add the "description" field:
$paymentData = array(
	'amount' => $amount,
	'currency' => $currency->currency_code,
	'payment_method_types' => ['card'],
	'payment_method' => $payment_method_id,
        'confirmation_method' => 'manual', // Need: confirm();
	'description' => $desc
);

The Stripe dashboard text should now be the text "Order number:" followed by the letter/digit order code of the corresponding order in the Hikashop Backend.

In the $paymentData array you also may integrate the "receipt_email" field that Sophie11 might need for sending receipts from the Stripe backend.

Best regards
Alexander

Last edit: 5 years 1 week ago by Jerome. Reason: replacing a ’ by a ' to simplify the copy/paste
The following user(s) said Thank You: Jerome, sophie11

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

  • Posts: 75
  • Thank you received: 1
5 years 2 months ago #311215

Hi Jerome,

Can you give me an idea when you will have a working version of the Stripe V3 Payment Plugin?

My client is unable to process online payments properly and is very upset about the situation.
Regards
Tim

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 2 months ago #311229

Hello,

Regarding the infinite loop after enter the credit card details and pressing "submit payment" ; I was able to see the issue on one website.
The website is using the legacy checkout (and the plugin is not tested with since the legacy features are not supported anymore).
But the errors was related to the HikaShop notification call

/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=stripeconnect&tmpl=component&order_id=XXX&lang=YY
Which give a 500 error page but I do not have the content of that error page nor the details for that error in the PHP error log.
Without these details it's not possible to debug nor fix the issue since I cannot reproduce it in my test websites.

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: 103
  • Thank you received: 5
5 years 2 months ago #311234

has anyone an up and running Stripe v3 shop where it would possible to have a look on this how that looks?

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

  • Posts: 112
  • Thank you received: 8
  • Hikashop Business
5 years 1 month ago #311428

Thank you Alexander
I updated the code of the plugin as you suggested and now on my Stripe dashboard I get the Order Number and receipts can be sent to the customers.
Thank you so much !!
Sophie

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 1 month ago #311431

Hello,

Thanks for the share and the feedback.
I will add such description support in the next update of the plugin

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: 112
  • Thank you received: 8
  • Hikashop Business
5 years 1 month ago #311726

Hi Jerome

This week 2 customers have had problem with the final page not displaying so they couldn't pay their order. There was an infinite loop and the page with the payment form couldn't load
They were surfing with an" old tablet" and with a 5 years old Blackberry.

The other orders went through with no problem
Has the plugin been tested with old devices ?
Thank you

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 1 month ago #311731

Hello,

The plugin has been tested with current browsers, as does HikaShop.
If you have an issue with an old device, the best would be to access to the console log in order to know more about the issue.
Right now, we can't tell from where the issue is coming from exactly.

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: 112
  • Thank you received: 8
  • Hikashop Business
5 years 1 month ago #311738

Hi
I don't think the problem comes from Hikashop but the Stripe Connect plugin as it's the only change that has been made recently in my site.
My customers never had problem with the payment before
What console log do I have to check ? Apache error logs ?
Thank you

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 1 month ago #311752

Hello,

If old device have issues it would be related to the JavaScript, so something directly from the device and it's browser.
The script in the plugin should be compatible with old devices but I can't say for the Stripe lib

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: 13
  • Thank you received: 0
5 years 1 month ago #311850

HI Jerome
Have you planned an update of the plugin coming next week ?

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 1 month ago #311860

Hello,

I made a little update on the plugin to improve the HikaMarket support.
But I don't understand what you're asking exactly.

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: 13
  • Thank you received: 0
5 years 1 month ago #312005

Jérôme

it was just regarding what Sophie11 was saying (order shown in Stripe dashboard) and if any improvment was done.
If not, that's fine.

thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 1 month ago #312009

Hello,

The patch to display the order number into the Stripe Description was not include into the plugin because it won't work in every cases.
For the current "end" mode, the create payment intent would have access to the order number, but with the "checkout" mode which will be available in the next update ; that information won't be available.
So I preferred not to add the patch like that for the moment. But we will improve the integration to provide a description to Stripe.

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: 37
  • Thank you received: 1
5 years 3 weeks ago #312582

Hi

Regarding the suggestion "Modifying the following function of your plugin should do the job" to add order number and email to the description sent to Stripe....

I am not a developer so I wonder if anyone can direct me to the exact place to add the code?

See attached screenprint how it is working for me today. It is really difficult to reconcile the payments when you are only relying on the amount.

Thanks
Niamh

Attachments:

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

  • Posts: 15
  • Thank you received: 6
  • Hikashop Business
5 years 3 weeks ago #312757

Hello nmanek,

1) Extract the downloaded plugin zip file to a folder.
2) It should contain several files, including the "stripeconnect.php" file. The function to modify starts at line 714 in the current version of the plugin, best is to search with a text editor for "private function createPaymentIntent(&$dbOrder, $payment_method_id)".
3) Now patch the function like indicated in my post and save the file.
4) Create a new plugin zip file from the whole content (including the subfolders, like "language", "lib" and "media").
5) Install your "homemade" plugin zip file as usual.

A warning, because you wrote that you are not (yet) a developer. A small mistake when patching the PHP file, or forgetting to re-create a plugin ZIP file with the original folder structure including all the original files will probably break the plugin. Probably, in case you may just reinstall the original plugin, which should fix the issue and you can try again, but you might just as well break admin access to your Joomla backend. So please, try this on your test server first and have a backup.

Best regards
Alexander

P.S.: I am just a user like you helping you for free, so please don't blame me, if something goes wrong. On the other hand, if you get it to work on your site, you will feel very proud of yourself. :-)

Last edit: 5 years 3 weeks ago by institutcalysta.
The following user(s) said Thank You: Jerome, Mohamed Thelji, earmaster

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

  • Posts: 132
  • Thank you received: 2
5 years 1 week ago #313089

institutcalysta wrote: Hello nmanek,

1) Extract the downloaded plugin zip file to a folder.
2) It should contain several files, including the "stripeconnect.php" file. The function to modify starts at line 714 in the current version of the plugin, best is to search with a text editor for "private function createPaymentIntent(&$dbOrder, $payment_method_id)".
3) Now patch the function like indicated in my post and save the file.
4) Create a new plugin zip file from the whole content (including the subfolders, like "language", "lib" and "media").
5) Install your "homemade" plugin zip file as usual.

A warning, because you wrote that you are not (yet) a developer. A small mistake when patching the PHP file, or forgetting to re-create a plugin ZIP file with the original folder structure including all the original files will probably break the plugin. Probably, in case you may just reinstall the original plugin, which should fix the issue and you can try again, but you might just as well break admin access to your Joomla backend. So please, try this on your test server first and have a backup.

Best regards
Alexander

P.S.: I am just a user like you helping you for free, so please don't blame me, if something goes wrong. On the other hand, if you get it to work on your site, you will feel very proud of yourself. :-)


Just wanted to confirm that this has also worked for us. Thanks a lot Alexander, and thanks of course Jerome for making the plugin.

The "Customer" field is still blank though. It used to be populated by the customer email with version 1.0.0. I'm not sure why it's gone, but hopefully it'll be back with the next update of the plugin :)

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 1 week ago #313116

Hello,

The description will be added into the next plugin release but regarding the customer, I'm afraid that I don't know where the information would come from.

During the last month, Stripe changed again a lot of its API because they had to publish the beta but a lot of points where still not finished.
Hopefully the API is still compatible but they added a lot of new functions to handle the "setup intent" and start the support of other payment methods such as iDeal.
We will keep a look at the API and see when something stable will be made so we could improve the plugin in our side too.

Now regarding the customer data, when we look at the "createPaymentMethod" function, there is the element for the billing address which include the "name" and "email" fields :
stripe.com/docs/stripe-js/reference#stri...reate-payment-method
stripe.com/docs/api/payment_methods/crea...thod-billing_details
These two fields are populated by the plugin and I can't tell you why they are not displayed in the panel afterwards.
It might be something to ask Stripe since I don't see any other possible field to place the name or the customer email.

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.

Time to create page: 0.157 seconds
Powered by Kunena Forum