subscription_payment_method_change
-
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’
-
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,
MarcusThanks 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.
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,
MarcusI found this:
2024-12-03T23:12:42+00:00Kritisk 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” ] }
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.
I have tried again – it still don’t work.
Here is the log:
2024-12-06T11:46:50+00:00 Debug ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== [5121] process_payment (gateway change: Yes) Request to change gateway to Vipps Created agreement with agreement ID: agr_s6bquhM 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\/”} Debug response: {“vippsConfirmationUrl”:”redacted”,”agreementId”:”agr_s6bquhM”,”uuid”:”aa841aa1-d620-4f37-8a6a-742e6f325416″,”chargeId”:null} 2024-12-06T11:46:51+00:00 Debug ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== HTTP Response Error (403): (webhooks/v1/webhooks) with request body: <empty>. The response was: 2024-12-06T11:46:51+00:00 Debug ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== Failed to initialize webhooks. Error: 2024-12-06T11:47:07+00:00 Debug ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== HTTP Response Error (403): (webhooks/v1/webhooks) with request body: <empty>. The response was: 2024-12-06T11:47:07+00:00 Debug ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== Failed to initialize webhooks. Error: 2024-12-06T11:47:12+00:00 Debug ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== HTTP Response Error (403): (webhooks/v1/webhooks) with request body: <empty>. The response was: 2024-12-06T11:47:12+00:00 Debug ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== Failed to initialize webhooks. Error: 2024-12-06T11:47:23+00:00 Debug ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== HTTP Response Error (403): (webhooks/v1/webhooks) with request body: <empty>. The response was: 2024-12-06T11:47:23+00:00 Debug ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== Failed to initialize webhooks. Error: 2024-12-06T11:47:30+00:00 Debug ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== HTTP Response Error (403): (webhooks/v1/webhooks) with request body: <empty>. The response was: 2024-12-06T11:47:30+00:00 Debug ==== Vipps/MobilePay Recurring Version: 2.0.8 ==== Failed to initialize webhooks. Error:
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 2 months, 4 weeks ago by
Marcus. Reason: Specifying what I want a screenshot of
Can I sent pictures or pdf to?
Is this in the plugin: ?Merchant Serial Number plugin setting is set to an invalid value
You can send a pdf too if you want. You can email them to me at [email protected]
Yes, Merchant Serial Number is a setting in the plugin ??
Ok – it is in the plugin. MSN: 37251666.
I will send you and email.
Updating to 2.1.1 fixes this issue ??
-
This reply was modified 2 months, 4 weeks ago by
- You must be logged in to reply to this topic.