Error creating charge record with Stripe – multi vendor order

WCMp Stripe Marketplace

Error creating charge record with Stripe – multi vendor order Open

Viewing 53 reply threads
  • Author
    Posts
    • #109187
      Nicolastop
      Participant

      Good morning,

      I have a critical issue with the WCMP Stripe Marketplace plugin I bought.
      The plugin works well with 1 product from 1 vendor.
      However, when a client orders 2 items from 2 different vendors:
      –> The client has an error message : “Error creating charge record with Stripe: The source you provided has already been attached to a customer.”
      image.png
      –> we receive (me + the 2 vendors) an email saying the order have been completed BUT the order DOESN’t show in the dashboard
      –> The payment of the first item is paid on Stripe but not the second.

      Could you please help me ASAP ?
      Best regards,
      Nicolas

      Attachments:
    • #109276

      Hi,
      can you please check this is happening for specific 2 vendors’ product or all products. We have checked https://wordpress.org/support/topic/the-source-you-provided-has-already-been-attached-to-a-customer/ here for woocommerce stripe.

    • #109288
      Nicolastop
      Participant

      Hi, it seems that it is happening for all products.

    • #109289
      Nicolastop
      Participant

      For information, below the version installed :
      WC Marketplace – 3.5.9
      Woocommerce – 4.6.1
      WCmp Stripe Marketplace – 1.2.4

    • #109293
      Nicolastop
      Participant

      Good evening, I asked Stripe support to provide help for my problem. Please find below their answer.

      Problems
      -The payment flow seems to be duplicated by a second payment, which results in a failure of the source attachment, which interrupts the flow and causes a failure of the second payment.
      -The registration of the card is established twice, through sources and tokens. The token creation was doubled due to the customer having made two payments.
      Your issue comes from:
      The use of sources, tokens and charges is deprecated since the new European standards, implemented on September 14, 2019.
      These items will no longer be accepted after December 31, 2020, and all of our users had to migrate to the payment_intents API this year.

      Solution: You only need to answer the last problem to correct your situation, since it involves entirely modifying the code structure of your payments.
      In the context of your WordPress plugin, this shouldn’t be insurmountable: most of these plugins offer updates to meet new European standards.
      This is why I invite you to contact your plugin team to learn more about this migration to the payment_intents API.

      If you see any new issues after this migration, I will be happy to investigate the source.”

    • #109296
      Nicolastop
      Participant

      Hi!
      To give you more details, for the previous tests, I was using ‘Direct charges” in WCMP Stripe Marketplace plugin settings, collecting application fees.

      I have made some new tests for payment. When I change to “Separate Charges and Transfers” in the WCMP Stripe Marketplace settings plugin, the payment is completed (it means that the error message doesn’t appear) (please see attached image Capture2)

      For example, I made an order with 2 products:
      – Product “Test 4” sold by Vendor A at 1 €
      – Product “Test 2” sold by Vendor B at 0,9 €

      On my Stripe account, I received the full payment of 1,90 €.
      – The vendor A received a “transfer” of 7 % of 1 € = 0,07 €
      – The vendor B did not receive any transfer.

      Please see Capture3 and Capture4 files below with the screenshots of Stripe logs and events.

      As a conclusion, I would say that the issue may come from the code for the second vendor. But it would mean that it is not possible to transfer funds to multiple connected accounts with the plugin…

      Hope it helps.
      Thank you for your answer,
      Nicolas

    • #109433

      Hi @Nicolastop,
      We have recreated this issue on our end. We will work on this asap.

    • #109604
      Nicolastop
      Participant

      Hello! Do you have some news about this issue? 🙂 Best regards, Nicolas

    • #109715
      Florian Le Guyader
      Participant

      Hi there,
      Is there any solution about this problem ?
      I got the exactly same issue with paiements !

      Florian

    • #109716

      Hi @Florian Le Guyader and @Nicolastop,
      We have already started working on this issue. We will try to share a beta version within the next week. Please give us some time.

    • #109720
      Florian Le Guyader
      Participant

      Ok thanks for your quick answer !

    • #110249

      Hi, thanks for your co-operation so far.

      We looked into the stripe API, they have changed their API code, hence you faced this issue. As per stripe’s current flow ( 3d authenticate with sca ) split payment is only possible with separate charges and transfers.
      However, the stripe will let you pay multiple vendors with direct and destination charges without SCA.

      Here is our conversation with stripe :

      is this possible to split payment using direct charge
      split payment to multivendor
      ???
      multi vendors stripe account
      testuser: the only way to do that is using separate charges and transfers : https://stripe.com/docs/connect/charges-transfers
      no.. i will try to find your example..
      testuser: as mentioned at https://stripe.com/docs/connect/charges#types https://usercontent.irccloud-cdn.com/file/tOYELIE3/image.png

      Screenshot of the conversation: https://prnt.sc/vmx9iu

      I am sharing the plugin file in the below thread.

      Here is the video :
      https://www.loom.com/share/3a24b3760d2740429f4680eed9240e43

      Kindly install the plugin and let us know whether the issue is resolved.

    • #110305
      MisterS
      Participant

      Hi, is there any update on this? This has happened to a few orders (always when ordering from more than one vendor) and this looks like it might be the reason.

      What we don’t really understand is sometimes the second transaction results in a Stripe attempt (one returned a success for the first vendor’s transaction, the second failed with a ‘do not honour’ code from their bank). But we have seen other orders where no attempt at a Stripe payment was made (no record of anything with the second vendor).

      Some orders for 2 or more vendors work fine, but occasionally have this issue where 2 vendors are in one order.

    • #110343
      This reply has been marked as private.
    • #110344

      @MisterS, I have shared the plugin link over mail, kindly check.

    • #110350
      MisterS
      Participant

      Hi,

      Can you provide more information before we test this.

      Currently does Stripe Marketplace use “Direct Charges”, and this is changing to “Seperate Charges and Transfers”?

      At the moment, (without SCA) 99% of orders work fine, a lot of these currently are to 2+ vendors in each order and work OK. It’s just that we have an occasional problem where 1 transaction fails in orders with 2+ vendors.

      It sounds like you are saying that currently with Stripe Marketplace, ALL multi-vendor orders will fail?

      Are these changes JUST about making Stripe Marketplace work with SCA enabled? Or generally to make it work correctly? thx

    • #110920

      MisterS, sorry for the delayed response.

      As per Stripe, for multiple vendor payments (2+), you need to use a Seperate charges only. As they don’t support multiple payments for a direct charge.

    • #110932
      MisterS
      Participant

      Hi @moumita we are currently using Direct Charges and it’s working totally OK for orders with multiple vendors (without SCA enabled).

      Do you mean with SCA it needs to use “Separate Charges and Transfers” charges and that’s what this update has fixed?

    • #111032

      Hi @MisterS

      As per our discussion with Stripe support, they have confirmed that- Stripe doesn’t provide live time split capability to multivendor with SCA.

      In their document too, they have mentioned-Only separate charge support split for multivendor

      https://stripe.com/docs/connect/charges#types https://usercontent.irccloud-cdn.com/file/tOYELIE3/image.png
      https://stripe.com/docs/connect/charges-transfers

      Here is our conversation with stripe

      is this possible to split payment using direct charge
      split payment to multivendor
      ???
      multi vendors stripe account
      testuser: the only way to do that is using separate charges and transfers : https://stripe.com/docs/connect/charges-transfers
      no.. i will try to find your example..
      testuser: as mentioned at https://stripe.com/docs/connect/charges#types https://usercontent.irccloud-cdn.com/file/tOYELIE3/image.png

    • #111036

      Yes, as per current Stripe’s code, you need “Separate Charges and Transfers” charges while using SCA.

    • #111433
      MisterS
      Participant

      Thanks @moumita I have had a long chat with Stripe about this and they are 100% sure that we don’t need to change our type from ‘Direct’ to ‘Separate Charges and Transfers’. But I think there needs to be a distinction between how your customers use WCMP and this has caused us confusion, perhaps others too!

      We only charge memberships, we don’t charge any commission on transactions, so 100% of an order’s value goes straight to the vendor. Due to this, I think this is effectively a single user transaction (from the customer to the vendor) so this is why Direct Charges currently work for us fine, and we think will continue to work OK.
      If we as the marketplace owner also took a commission, this would be multiple users involved in the transaction (the customer sends funds to the vendor and the marketplace owner).

      So according to the guide you found on Stripe’s website, this is what you can use for each:
      https://usercontent.irccloud-cdn.com/file/tOYELIE3/image.png

      Perhaps ‘Saperate Charges and Transfers’ might also work for us, but we don’t want to change our Charge type unless we 100% sure we need to because we have noticed in testing that it changes the transaction references that customers see – I think it changes them from Order number to the Vendor name? This is actually useful in a different way, but want to keep everything the same for consistency if we can, and if ‘Direct Charges’ type continues to work, we’ll stay with those.

      All of the above aside, what Stsripe says needs to be updated after their API changed is that transactions are now sent as ‘Payment Intents’ rather than ‘Charges’ to be SCA compliant. Is this what your plugin update has changed?

      This ties in with what @santons2provence says above when “payment_intents API” was mentioned, meaning plugins need to migrate to this.

      Has this been updated in your plugin and it now works with Payment Intents?

    • #111593
      MisterS
      Participant

      Hi @moumita Also the Stripe Gateway zip file you sent us is v1.2.3, but I see that the latest available (that includes changes for Stripe API) was released in September and is v1.2.4.

      Can you clarify which version we should be testing, did you make any additional amends to the plugin in the zip file, or should we just download v1.2.4 from your website and test this?

    • #111717

      Yes, we added support for “payment_intents API”.
      Also, we will release an update for stripe within a day with the new fix.

    • #111731
      MisterS
      Participant

      @moumita Thanks, so for SCA integration should we be testing the v1.2.3 zip file that you sent us, or v1.2.4?

      What changes will be in the next (v.1.2.5?) version?

    • #111927

      Hi we have already released the update I.e. version 1.2.5

      You can see the changelog here https://wc-marketplace.com/product/wcmp-stripe-marketplace/#tab-changelog_tab

    • #111955
      MisterS
      Participant

      Hi @moumita we have installed this (from our API Downloads page) but our developer tells us it’s referring to a “wcmp-stripe” subfolder which doesn’t exist, can you confirm it’s working or needs something fixing?

    • #112041
      MisterS
      Participant

      @moumita any update on this? We are getting very short on the time needed to test SCA payments and need this plugin fixed and working.

    • #112130
      MisterS
      Participant

      This is my daily update to this thread to see if this can be fixed! Is there any news at all on this?

      Should we instead use the previous (v1.2.4) version? Will this still allow all SCA transactions though if you added 3D Secure in v1.2.5?

    • #112145
      Fantastic Kuhu
      Keymaster

      Hi @MiSters,

      Please refer the below private message, I’m sharing the latest WCMp Stripe plugin. You can ask your developer to directly activate this plugin using the API key.

      WCMp Vendor Membership- Dev team is already working and co-ordinating with Stripe team. WCMp Vendor Membership plugin will come up with major change , you can say almost a new plugin modified from scratch and absolutely compatible by latest stripe . As we are almost creating WCMp Membership from scratch, it’s time taking. Still team is trying their best to launch by 31st Dec.

      Regards,

    • #112146
      Fantastic Kuhu
      Keymaster
      This reply has been marked as private.
      • #112167
        MisterS
        Participant

        Hi @neha I can’t see this message, could the plugin be sent to our profile email address?

    • #112184

      @MisterS, I have shared the plugin file via link.

    • #112188
      MisterS
      Participant

      Thanks.

    • #112271

      This has been fixed in our last update. Kindly check it at your end and let us know.

    • #112419
      MisterS
      Participant

      Hi, we are just testing this, we updated the plugin to this version, looks OK in test mode using the test Stripe card numbers.

      Now we’re testing live Stripe mode (live keys and real cards) but during testing.. 100% of the order value is going to the main Stripe, not to the vendor. We operate a service where 100% of order funds go to the vendor (after Stripe charges), we don’t get a commission. It seems as though it’s the opposite of what we specified in settings.

      Our commission settings haven’t changed and worked fine before this update.

      * In Vendor Type, vendor commission is set to 100.
      * In WCMp/Payment settings mode is Vendor Commissions, Percentage, 100 (not sure if this applies to anything, or if Vendor Type determines commission).

      We have noticed that Direct Charges is no longer an option we can select with this version, Separate Charges and Transfers is pre-selected so I guess we have to use this now! (we previously used Direct Charges – see above).

    • #112435

      @MisterS
      , if you have enabled “SCA”, then you can only select a separate charge type. That is why we have disabled the direct charge.

    • #112446
      Nicolastop
      Participant

      Hi @misterS and @Moumita! I am giving you some updates regarding this topic. During the last weeks my website worked very well with Stripe Marketplace plugin (version 1.2.4) and WC Marketplace (version 3.5.9). I was using “Separate Charges and Transfers” option and have enabled “Strong Customer Authentication”(SCA) option (please see the attached file for the settings). With these settings, the payments are currently working very well, including for orders with multiple sellers. (93% of the payment goes for my vendors, 7% for me)

      I understand from the discussion that you released new updates of Stripe Marketplace plugin. Furthermore, as you probably know, Stripe said to all European Stripe users this email: “On December 31, 2020, the entry into force of the European Directive on Strong Customer Authentication (SCA) will require the implementation of two-factor authentication for many online payments in Europe. […] In order to ensure that your payment tunnels correctly manage the dynamic 3D Secure protocol, we recommend that you test your integration with each of our test cards.

      So my question will be: with my settings, what will change after the 31st of December? What action would you recommend? Update the plugin with 1.2.5 version?

      Best regards,
      Nicolas

    • #112680
      Nicolastop
      Participant

      Hello guys! Could you give us an update regarding this topic?
      Best regards,
      Nicolas

    • #112688
      MisterS
      Participant

      Yes, an update would be useful! I have since learned that the deadline for SCA in the UK is actually now September 2021 but we still need this working for us next year, and also for European users of WCMp this needs to be 100% working before 1st Jan 2021.

      See above, we installed v1.2.6 to test this but despite our settings, 100% of order commissions is going to the marketplace owner, rather than the vendor, it should be the other way around (100% to the vendor, 0% to the marketplace owner).

      Has anyone else tested this to check it’s working? It’s not working for us! We are using an older version of Advanced Frontend Manager (we will soon update this), but with the version we use, the only change we made was to update Stripe Marketplace to v1.2.6 and the commission funds sent are now incorrect.

    • #112690
      Nicolastop
      Participant

      @MisterS : I recommend you to replace “100” by “0” in the WCMP commission settings and it should solve your problem.

    • #112704
      MisterS
      Participant

      Thanks for the tip @santons2provence , we changed commission in WCMP settings and the Vendor membership settings to 0 (this saves an ’empty value’) and tested again, it still sent 100% of the order amount to the marketplace owner, not to the vendor.

    • #112831

      @MisterS, as per stripe’s new API for SCA, you need to use a Separate Charge. However, this will send the money first to the admin and then it will send money to the vendor.

      Can you please check the payment again on your site?

    • #112835
      MisterS
      Participant

      Hi @moumita 100% of the amount was just sent to the admin and sat there, how does it then get sent to the vendors? Does this happen after a certain amount of time, automatically?

      So is this different method for funds direction to how Direct Charges work? We only ever want funds from orders to 100% go from the customer to the vendor.

      Also after explaining how we are using the multi-vendor structure, Stripe have told us that we can still use Direct Charges, because each split payment is actioned individually, so it’s between one customer and one vendor (not multiple vendors in one transaction)

      This is a very important point for us, because you have now disabled Direct Charges we cannot use this, but Stripe have told us we can continue to use this option. If this is the only way we can send payments directly to vendors from customers, we need to be able to select this option.

    • #112949

      Hi,
      Stripe has changed their API. As per there new settings multiple account split is only possible by Separate and transfer Charge. Direct charged is not allowed by stripe for the multi-account split. It is also split in real time. But total money first goes to admin wallet then transfer to vendor( at the same time. No need to wait ). You can track where your money goes from all transaction setting in stripe.

    • #112954
      MisterS
      Participant

      Hi, I talked to Stripe after they changed their API, explained how WCMP currently worked (pre-SCA) with our particular use (100% commission) and they said there is no need to change the Payment Type we use, we can still use Direct Payments because the orders are currently split into separate transactions, one per vendor. So we have both been given different information.

      Does WCMP still split the order into separate transactions? Or has the code fundamentally changed to use only 1 transaction to multiple vendors?
      The only reason for changing the payment type is if WCMP has changed how orders are processed. Have you changed this yourself? Or in response to talking to Stripe?

      We have built up interest in creating lots of multi-vendor sites for clients but based on the simple and very important fact that funds go directly from customers to vendors without us (marketplace owners) being involved in the transaction. The only time we get money from anyone is for Vendor subscriptions. If you are saying 100% that the money FIRST needs to go to the marketplace owner’s account THEN to the vendor, I’m not sure we can use your plugin because it has fundamentally changed how funds flow. We will have wasted months of work creating the sites and marketing them and will have to start again with a different multi-vendor solution.

      I feel like there is again confusion about how this works – see above, we tested v1.2.6 and the money just went to the marketplace owner and didn’t go to the vendor. How should this work? Automatically and instantly? Or with a commission withdrawal? I can’t find any info about this on your site.
      Have you tested this flow, and it’s working correctly for you? Is there any documentation for how this should work?

    • #113124

      Hi, with SCA stripe has restricted multiple transaction for an order (i.e. it now supports transaction with customer to one vendor).

      Even though we split parent order into suborders, but for the payment part, we consider the parent order only and fetch the commission details from there. It means, while paying the vendor, the system will create seperate transaction per vendor from same source i.e. stripe will see this transaction as one to many (i.e. customer to vendors)

      That is why, with separate charge, stripe sends the money to admin (customer to admin), and from admin’s account it will split the money automatically to all the vendors.

      As Stripe has already updated their API, hence we had to add the support in our plugin too. Otherwise when the customer would pay the order, stripe

    • #113999
      MisterS
      Participant

      Thanks, I am still confused to how payments now look because we can’t get this new version (v1.2.6) working – it just sends 100% of commission to the admin and nothing (0%) to the vendor. In our settings we have specified 100% commission so 100% should go to the vendor but it doesn’t.

      Anyway, for now, we are not switching to the new version with SCA due to this.

      Can you tell me which is the last correctly working version of Stripe Marketplace before the new SCA changes (payment intents) were made?

      Could we have this version to download – for now we just need the best working version before SCA. Is this v1.2.4?

    • #114339

      @MisterS, as stripe has changed the whole flow via their API, hence you have to use the latest version of Stripe. Otherwise, if you would use the older version of WCMp Stripe Marketplace, then stripe will restrict the payment to be processed.
      Here is our changelog of the updates: https://wc-marketplace.com/product/wcmp-stripe-marketplace/#tab-changelog_tab

    • #114350
      MisterS
      Participant

      Hi @moumita as I have mentioned several times above, we have tested v1.2.6 but this isn’t working for us, the payments are only sent to the admin, not to vendors even though they should all receive 100% of commission, do you know why this could happen and how we can fix this?

      Until we fix this issue, for now we just need to use the most up-to-date version of the plugin before it was changed to use the new version of the API (so we can use the version with the least bugs). Is this v1.2.4?

      Our site is still using an older version of Stripe Marketplace (v1.2.1) and this is still working fine for payments so what you say about payments being restricted by Stripe isn’t correct.

      Also what date did Stripe’s API change? According to what you’re saying, all of your users using an older version of your plugin would have had payments suddenly stop working on this date if they hadn’t updated yet – I find it disturbing that you didn’t inform users of this!

    • #114640

      As your vendor is not receiving the money can you share the log file of our stripe dashboard so we can check this and locate the issue.

      For the stripe update part, we didn’t change our flow. We simply added the updated stripe api and 3d authentication for European countries. All the payment part is getting carried out by stripe only.

    • #114673
      MisterS
      Participant

      Thanks, I’ll try to get hold of the log.

      For now (because we aren’t ready for SCA payments), we just need to use the most recent version

        before

      you removed the Direct Payments option because this is causing us issues to try to use Separate Charges and Transfers.

      Is v1.2.4 the last version where Direct Charges was available? Can we please have this as a download zip.

    • #115731

      Hello,

      Sorry for the delay in response.

      As we update our plugin to the latest version we do not have any reference to our old code.

      Kindly let us know if you need any further assistance.

    • #116038
      MisterS
      Participant
      This reply has been marked as private.
    • #116040
      MisterS
      Participant

      “As we update our plugin to the latest version we do not have any reference to our old code.”

      You don’t have older versions of your code? Do you not use a code repository/source control? This seems kind of crazy.

      If anyone else is reading this and downloaded v1.2.4 for Stripe Marketplace could they reply here please.

    • #116592
      This reply has been marked as private.
Viewing 53 reply threads

Please LOGIN to reply to this topic

Buy all Marketplace addons together, check out our Bundle

Buy at Slashed Price