I have approx 400 members via Wishlist Member(WordPress plugin – https://wishlistmember.com/) on my website that I’m trying to seamlessly migrate over to Woocommerce Subscription (Plugin – https://woocommerce.com/products/woocommerce-subscriptions/). The Subscription plans are like for like and both using Stripe payment gateway.
I’m using a CSV file to do the import to woocommerce subscription via this plugin – https://github.com/woocommerce/woocommerce-subscriptions-importer-exporter
My issue is for the "payment_method_post_meta" field I require a "src_" payment method ID though for my wishlist member customers the payment id in stripe is a "pm_" payment id.
This is causing the next scheduled payment to fail. Is there a way to get a "src_" payment id for my customers so there isn’t any intervention required on the customers behalf?
2
Answers
Although not ideal I was able to resolve this issue using WP ALL IMPORT PRO.
So firstly I imported the subscriptions with this plugin - https://github.com/woocommerce/woocommerce-subscriptions-importer-exporter Though for the "payment_method_post_meta" field I wouldn't include the "_stripe_source_id".
Then I used "WP ALL IMPORT PRO" to import only the "_stripe_source_id"
I then used the following setup to ensure only the stripe_source_id was updated using the _customer_user custom field as the unique identifier.
I recommend working with WooCommerce support on this. Looks like a few others have encountered issues with this plugin when trying to import card source objects:
For additional context, the IDs for card details saved on Stripe can have one of a few different types of formats:
card_
,src_
,pm_
. Stripe’s older APIs usecard
andsrc
, while the latest PaymentMethod API usespm
.When using Stripe with a third-party plugin, it’s ultimately up to plugin developers to add support within their tools for these types.