woocommerce / woocommerce-subscriptions-importer-exporter

Import your subscribers to WooCommerce from a CSV. Or export your subscription data from WooCommerce to CSV.
GNU General Public License v3.0
149 stars 57 forks source link

Changing Payment Method to Authorize.net CIM #215

Open jakeperrin opened 4 years ago

jakeperrin commented 4 years ago

I am switching from using NMI to Authorize.net and have all the new token information from Authorize.net. However I've not been able to successfully process a renewal using this method. When I try to process I renewal I get this error "Authorize.Net Credit Card Payment Failed (Subscription Renewal: payment token is missing/invalid.) Order status changed from Pending payment to Failed."

  1. I think this is because the user profile is still missing "Customer ID", "Shipping Address ID" and "Authorize.Net Gateway Payment Tokens". And even when I manually enter the "Customer ID" and "Shipping Address ID", hit save. Then click refresh on "Authorize.Net Gateway Payment Tokens", it doesn't pull in the saved credit card information from Authorize.net.

I have tried importing the custom_user_meta for "wc_authorize_net_cim_customer_profile_id", but that doesn't seem to help.

I think it needs "_wc_authorize_net_cim_credit_card_payment_tokens" in the custom_user_meta in order for it to work properly, but I don't know how to automate this because it looks like it needs maybe a billing_hash and payment_hash.

  1. Also, is there a way to update existing subscriptions with this plugin instead of adding new ones?

Any help would be GREATLY appreciated!

Thanks!