Title: subscription_payment_method_change
Last modified: December 5, 2024

---

# subscription_payment_method_change

 *  Resolved [seastai](https://wordpress.org/support/users/seastai/)
 * (@seastai)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/)
 * I have installed a plugin for customers to subscribe with MoibilePay – Vipps/
   MobilePay Recurring Payments – MobilePay. You indicate in your module that subscribers
   can change the payment method to MobilePay.
 * But it doesn’t work – ‘subscription_payment_method_change_customer’

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Marcus](https://wordpress.org/support/users/marcuz2k2k/)
 * (@marcuz2k2k)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/#post-18180893)
 * Hi,
 * This is supposed to work. Can you give me a bit more details about how to reproduce
   this issue? Are the customers trying to change payment method from the “My account”-
   > “Subscriptions” area?
 * Kind regards,
   Marcus
 *  Thread Starter [seastai](https://wordpress.org/support/users/seastai/)
 * (@seastai)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/#post-18180904)
 * Thanks for a very quick reply.
 * When an existing subscriber whants to change payment method form e.g. credit 
   card to MobilePay it does not work.
 * I have also tried to do it – same result.
 * We have now In your code removed ‘subscription_payment_method_change’ – just 
   so clients can’t see the option.
 * Hope it makes sense.
 *  Plugin Author [Marcus](https://wordpress.org/support/users/marcuz2k2k/)
 * (@marcuz2k2k)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/#post-18181553)
 * Hi,
 * I just attempted to swap payment method on a subscription made with another payment
   gateway, to Vipps MobilePay, and it worked as expected.
 * What happens when you try to switch payment method to MobilePay? Are you experiencing
   an error?
 * If there is an error you may want to enable the “Log debug messages” setting 
   in the plugin settings. You can then view the logs of the plugin from WooCommerce-
   > Status -> Logs. The error will be in the plugin logs, or in the “fatal-errors”
   log from WordPress. If you see any error that points to this plugin it will be
   very helpful if you could send it to me 🙂
 * Kind regards,
   Marcus
 *  Thread Starter [seastai](https://wordpress.org/support/users/seastai/)
 * (@seastai)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/#post-18182615)
 * I found this:
 * **2024-12-03T23:12:42+00:00****Kritisk** Uncaught WC_Vipps_Recurring_Exception
   in /var/www/www.stai.dk/www/wp-content/plugins/vipps-recurring-payments-gateway-
   for-woocommerce/includes/wc-vipps-recurring-api.php:651 Yderligere kontekst{ “
   error”: { “type”: 1, “file”: “/var/www/www.stai.dk/www/wp-content/plugins/vipps-
   recurring-payments-gateway-for-woocommerce/includes/wc-vipps-recurring-api.php”,“
   line”: 651 }, “remote-logging”: true, “backtrace”: [ “”, “#0 /var/www/www.stai.
   dk/www/wp-content/plugins/vipps-recurring-payments-gateway-for-woocommerce/includes/
   wc-vipps-recurring-api.php(506): WC_Vipps_Recurring_Api->handle_http_response()”,“#
   1 /var/www/www.stai.dk/www/wp-content/plugins/vipps-recurring-payments-gateway-
   for-woocommerce/includes/wc-vipps-recurring-api.php(98): WC_Vipps_Recurring_Api-
   >http_call()”, “#2 /var/www/www.stai.dk/www/wp-content/plugins/vipps-recurring-
   payments-gateway-for-woocommerce/includes/wc-gateway-vipps-recurring.php(449):
   WC_Vipps_Recurring_Api->get_agreement()”, “#3 /var/www/www.stai.dk/www/wp-content/
   plugins/vipps-recurring-payments-gateway-for-woocommerce/includes/wc-gateway-
   vipps-recurring.php(502): WC_Gateway_Vipps_Recurring->get_agreement_from_order()”,“#
   4 /var/www/www.stai.dk/www/wp-content/plugins/vipps-recurring-payments-gateway-
   for-woocommerce/includes/wc-vipps-recurring.php(734): WC_Gateway_Vipps_Recurring-
   >check_charge_status()”, “#5 /var/www/www.stai.dk/www/wp-includes/class-wp-hook.
   php(324): WC_Vipps_Recurring->check_order_statuses()”, “#6 /var/www/www.stai.
   dk/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#7 /var/
   www/www.stai.dk/www/wp-includes/plugin.php(565): WP_Hook->do_action()”, “#8 /
   var/www/www.stai.dk/www/wp-cron.php(191): do_action_ref_array()”, “#9 {main}”,“
   thrown” ] }
 * ![](https://i0.wp.com/pixel.wp.com/t.gif?ssl=1)
 *  Plugin Author [Marcus](https://wordpress.org/support/users/marcuz2k2k/)
 * (@marcuz2k2k)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/#post-18182654)
 * Hi,
 * This seems to be unrelated. Do you have any logs in the log called “woocommerce-
   gateway-vipps-mobilepay-recurring”? Try to trigger the issue first, the log will
   be at the bottom of the latest log file from today’s date.
 *  Thread Starter [seastai](https://wordpress.org/support/users/seastai/)
 * (@seastai)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/#post-18182705)
 * I have tried again – it still don’t work.
 * Here is the log:
 * **2024-12-06T11:46:50+00:00** **Debug** [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L554)
   ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L555)[
   5121] process_payment (gateway change: Yes) [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L556)
   Request to change gateway to Vipps [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L557)
   Created agreement with agreement ID: agr_s6bquhM [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L558)
   Debug body: {“productName”:”STAI NO.1 – 450 g”,”pricing”:{“type”:”LEGACY”,”currency”:”
   DKK”,”amount”:47120},”interval”:{“unit”:”MONTH”,”count”:1},”externalId”:”5121″,”
   campaign”:{“type”:”PRICE_CAMPAIGN”,”price”:0,”end”:”2025-01-06T11:46:48Z”},”phoneNumber”:”
   25351754″,”merchantAgreementUrl”:”https:\/\/stai.dk\/min-konto\/”,”merchantRedirectUrl”:”
   https:\/\/stai.dk\/min-konto\/”} [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L559)
   Debug response: {“vippsConfirmationUrl”:”redacted”,”agreementId”:”agr_s6bquhM”,”
   uuid”:”aa841aa1-d620-4f37-8a6a-742e6f325416″,”chargeId”:null} [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L560)
   [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L561)**
   2024-12-06T11:46:51+00:00** **Debug** [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L562)
   ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L563)
   HTTP Response Error (403): (webhooks/v1/webhooks) with request body: <empty>.
   The response was: [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L564)
   [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L565)**
   2024-12-06T11:46:51+00:00** **Debug** [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L566)
   ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L567)
   Failed to initialize webhooks. Error: [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L568)
   [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L569)**
   2024-12-06T11:47:07+00:00** **Debug** [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L570)
   ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L571)
   HTTP Response Error (403): (webhooks/v1/webhooks) with request body: <empty>.
   The response was: [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L572)
   [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L573)**
   2024-12-06T11:47:07+00:00** **Debug** [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L574)
   ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L575)
   Failed to initialize webhooks. Error: [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L576)
   [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L577)**
   2024-12-06T11:47:12+00:00** **Debug** [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L578)
   ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L579)
   HTTP Response Error (403): (webhooks/v1/webhooks) with request body: <empty>.
   The response was: [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L580)
   [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L581)**
   2024-12-06T11:47:12+00:00** **Debug** [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L582)
   ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L583)
   Failed to initialize webhooks. Error: [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L584)
   [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L585)**
   2024-12-06T11:47:23+00:00** **Debug** [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L586)
   ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L587)
   HTTP Response Error (403): (webhooks/v1/webhooks) with request body: <empty>.
   The response was: [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L588)
   [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L589)**
   2024-12-06T11:47:23+00:00** **Debug** [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L590)
   ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L591)
   Failed to initialize webhooks. Error: [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L592)
   [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L593)**
   2024-12-06T11:47:30+00:00** **Debug** [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L594)
   ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L595)
   HTTP Response Error (403): (webhooks/v1/webhooks) with request body: <empty>.
   The response was: [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L596)
   [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L597)**
   2024-12-06T11:47:30+00:00** **Debug** [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L598)
   ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L599)
   Failed to initialize webhooks. Error: [](https://stai.dk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=woocommerce-gateway-vipps-mobilepay-recurring-2024-12-06#L600)
 *  Plugin Author [Marcus](https://wordpress.org/support/users/marcuz2k2k/)
 * (@marcuz2k2k)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/#post-18182868)
 * How strange… in the log you just sent me you actually received a successful response
   from MobilePay. Both the request and the response look
 * Can you take a screenshot of the error you are experiencing when trying to swap
   payment method from the customer account area (in the user interface, not the
   log)?
 * Also, unrelated, but the other error you are seeing there that says “Failed to
   initialize webhooks” could be because the Merchant Serial Number plugin setting
   is set to an invalid value.
    -  This reply was modified 1 year, 6 months ago by [Marcus](https://wordpress.org/support/users/marcuz2k2k/).
      Reason: Specifying what I want a screenshot of
 *  Thread Starter [seastai](https://wordpress.org/support/users/seastai/)
 * (@seastai)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/#post-18182876)
 * Can I sent pictures or pdf to?
 * Is this in the plugin:  Merchant Serial Number plugin setting is set to an invalid
   value
 *  Plugin Author [Marcus](https://wordpress.org/support/users/marcuz2k2k/)
 * (@marcuz2k2k)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/#post-18182922)
 * You can send a pdf too if you want. You can email them to me at [marcus.dahl@everyday.no](https://wordpress.org/support/topic/subscription_payment_method_change-2/marcus.dahl@everyday.no?output_format=md)
 * Yes, Merchant Serial Number is a setting in the plugin 🙂
 *  Thread Starter [seastai](https://wordpress.org/support/users/seastai/)
 * (@seastai)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/#post-18182929)
 * Ok – it is in the plugin. MSN: 37251666.
 * I will send you and email.
 *  Plugin Author [Marcus](https://wordpress.org/support/users/marcuz2k2k/)
 * (@marcuz2k2k)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/#post-18187630)
 * Updating to 2.1.1 fixes this issue 🙂

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘subscription_payment_method_change’ is closed to new replies.

 * ![](https://ps.w.org/vipps-recurring-payments-gateway-for-woocommerce/assets/
   icon-256x256.png?rev=3026662)
 * [Vipps/MobilePay recurring payments for WooCommerce](https://wordpress.org/plugins/vipps-recurring-payments-gateway-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/vipps-recurring-payments-gateway-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/vipps-recurring-payments-gateway-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/vipps-recurring-payments-gateway-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vipps-recurring-payments-gateway-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vipps-recurring-payments-gateway-for-woocommerce/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [Marcus](https://wordpress.org/support/users/marcuz2k2k/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/subscription_payment_method_change-2/#post-18187630)
 * Status: resolved