woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
228 stars 201 forks source link

Allow the usage of payment method objects as a saved card #1102

Closed RadoslavGeorgiev closed 3 weeks ago

RadoslavGeorgiev commented 4 years ago

Allow the usage of PaymentMethod objects when they are imported.

Even though it's not necessary to replace the sources API with the PaymentMethods API completely within the plugin, we should allow imported payment methods to be used.

In terms of the properties we use, PaymentMethods are relatively similar to sources. This means that the necessary changes should be minimal:

p7bbVw-3vL-p2

mouligreenlaw commented 4 years ago

This ticket might be the same issue: 2550039-zen User is trying to add a new Stripe token to a customers account via Subscriptions Payment Details but is is not being saved. Token has a seti_ prefix Token from Stripe has

jessLundie commented 4 years ago

Also seen in 2623501-zen

gppuddinpie commented 4 years ago

Is there any goal date for this to be complete? I'm unable to use Subscriptions until this has been fixed, as Stripe now only uses PMI and I'm unable to convert my existing customer subscriptions over without it.

onurk7 commented 4 years ago

We are also still waiting for a very long time, we are not able to migrate our current subscribers to Woocommerce Subscriptions and waiting for this to be done to buy Woocommerce Subscriptions.

jrick1229 commented 4 years ago

Also seen in: 3160959-zen

trulslie commented 4 years ago

Hi. I also have been talking with WC in support about WC Subscribers not accepting the stripe src codes, as generated from when I earlier had Memberpress, (which also added a renewal stripe subscription). Strangely new WCS orders works with src generated from Card ID. And adding manuelly old subscriptions, when customer card ID had a card code, works find with renewals. WC special support says they now will be back on the issue, since these manually added subscriptilns, make stripe react with error, saying the "pm should be used...

jacoswan commented 4 years ago

Also seen in: 3172124-zen

GeoJunkie commented 4 years ago

This came up also in 3174320-zen .

trulslie commented 4 years ago

Also seen in: 3172124-zen

How do I see this link?

jessLundie commented 4 years ago

How do I see this link?

@trulslie You won't actually be able to see that link. The -zen and -hc numbers are internal ticket reference numbers used by the WooCommerce team to track customer cases.

gppuddinpie commented 4 years ago

There's a solution another user discovered, though it requires modifying original files: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/1181#issuecomment-642433546

This has worked for me to import subscriptions.

NickGreen commented 4 years ago

We ran into this problem on a partner site. We chose to use the workaround of modifying the Stripe plugin and running that version, which:

It’s not ideal to be running a modified version of the Stripe plugin, but it does provide a test case for that code, in case we want to add it to the main plugin at some point.

onurk7 commented 4 years ago

Because of this issue, woocommerce subscription plugin probably lost a lot of active businesses such as us for last 9 months as people are still not able to migrate their current subscribers for 9 long months. The plugin's users -who paid 200 usd for it- are trying to find a solution themselves for months instead of well-known woocommerce's developers or product leads and still no news.

Can you guys tell your customers such as us when it will be done as we are tired of seeing delayed milestones? Should we wait forever or we are about to find another solution instead of woocommerce subscription plugin.

Thanks.

dechov commented 3 years ago

@RadoslavGeorgiev Would https://github.com/woocommerce/woocommerce-gateway-stripe/pull/1331 close this despite not touching get_source_object or any use of Sources besides the one?

RadoslavGeorgiev commented 3 years ago

@dechov #1331 fixes the biggest part of this issue: migrated subscriptions. However, I believe that migrations from other platforms might also import existing Payment Methods, which should be usable as saved cards.

I did this locally and it failed:

  1. Go through checkout with a new card and make sure to save it.
  2. In the database, replace some values with those from the CURL commands in your PR:
    • The customer ID in wp_usermeta with the new customer.
    • The source ID with the payment method ID in wp_woocommerce_payment_tokens.
  3. Try to check out with the saved card. You'll see another error, stating that the given pm_*** source does not exist.

Note: This is not as critical, because customers can re-enter their CC details during checkout, but still an issue.

dechov commented 3 years ago

Ah, I hadn't considered the saved cards πŸ‘ – thanks.

paultannenbaum commented 3 years ago

Is there any update on this, or when you guys plan on putting out a new release that includes #1331? There are several of us waiting in limbo until there is a release that includes this work. If it is going to be a while before a release that includes #1331, is there any kind of documentation on how we can run the master branch of this on our projects, meaning is there any kind of compile step or can I just download the repo and put it in the plugins directory?

dechov commented 3 years ago

@paultannenbaum Thanks for checking in – it's been released as of yesterday evening.

paultannenbaum commented 3 years ago

I saw that, currently implementing it into our app as we speak. Thank you all for your hard work on this πŸ™Œ

thisissandip commented 1 year ago

@dechov are we good to close this issue (considering this https://github.com/woocommerce/woocommerce-gateway-stripe/pull/1331 resolves it)?

thenbrent commented 1 year ago

@dechov can we consider this issue resolved now that https://github.com/woocommerce/woocommerce-gateway-stripe/pull/1331 is merged? Or is this piece still to be addressed with this issue?

dechov commented 1 year ago

Thanks for the pings – @RadoslavGeorgiev or @diegocurbelo might have a better idea of the scope of the issue, but my understanding is that being able to use the saved cards on checkout was included and still not working.

diegocurbelo commented 3 weeks ago

Fixed with the new checkout release back in 8.0.0