vippsas / vipps-recurring-woocommerce

Vipps Recurring payments for WooCommerce
GNU Affero General Public License v3.0
6 stars 4 forks source link

Recurring Payments Not Processing Correctly with WooCommerce #99

Open EimanMarzouk opened 1 month ago

EimanMarzouk commented 1 month ago

I’m encountering an issue with the WooCommerce recurring payments integration using the Vipps Recurring API. When users attempt to subscribe, they successfully log in, and I can confirm that the recurring payment method is being sent in the payload. However, I receive a 400 HTTP error with the following message:

The payment method used is not supported. PaymentMethod must be one of 'wallet', 'card', 'recurring'.

Steps to Reproduce:

1.  Add a subscription to the cart.
2.  Proceed to checkout using Vipps as the payment method.
3.  The user is prompted to log in and the correct details are passed (verified in logs).
4.  When attempting to proceed with the subscription, the payment fails with the error mentioned above.

Additional Information:

•   I have verified that the user is logged in (see attached screenshots).
•   The payload includes paymentMethod: "recurring" (see attached logs and payload information).
•   Error in WooCommerce logs shows an issue with the agreement ID: Uncaught TypeError: Argument #1 ($agreement_id) must be of type string, null given.

Expected Behavior:

•   The user should be able to complete the checkout process and successfully set up a recurring payment.

Screenshots & Logs:

•   Attached are screenshots from both the logs and checkout flow to provide additional context.![Image](https://github.com/user-attachments/assets/25b6cd21-e2b4-4e17-81ec-6a0dc418f18b)
Marcuzz commented 1 month ago

Hi Eiman,

Thank you for reporting this issue.

We will figure this out for you.

Are you able to send me the entire log file? You can email it to marcus.dahl@everyday.no

Kind regards, Marcus Dahl

EimanMarzouk commented 1 month ago

Hi MarcusSure. I’m assuming that you want the woo log?There’s a screenshot attached of the logBest Regards \ Med venlig hilsen Eiman MarzoukEmail: @. 21 Oct 2024, at 17.21, Marcus @.> wrote: Hi Eiman, Thank you for reporting this issue. We will figure this out for you. Are you able to send me the entire log file? You can email it to @.*** Kind regards, Marcus Dahl

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Marcuzz commented 1 month ago

Hi,

I need the log from the WooCommerce -> Status -> Logs -> Vipps MobilePay Recurring Payments area.

Try initiating a payment and triggering the error before sending me the log, though. Or send the log from the day you tried this last 😄

Unfortunately it looks like attachments are not automatically included when you reply to this issue via email. GitHub does not automatically attach the file.

Try emailing it to me manually at marcus.dahl@everyday.no instead 😄

EimanMarzouk commented 1 month ago

 Med venlig hilsen / Kind regards

Eiman Marzouk Telefon: 20 62 78 73 E-mail: @.***

On 21 Oct 2024, at 17.58, Marcus @.***> wrote:

Hi,

I need the log from the WooCommerce -> Status -> Logs -> Vipps MobilePay Recurring Payments area.

Try initiating a payment and triggering the error before sending me the log, though. Or send the log from the day you tried this last 😄

Unfortunately it looks like attachments are not automatically included when you reply to this issue via email. GitHub does not automatically attach the file.

Try emailing it to me manually at @. @.> instead 😄

— Reply to this email directly, view it on GitHub https://github.com/vippsas/vipps-recurring-woocommerce/issues/99#issuecomment-2427089459, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIZGCBMILU6IPMOCYSD6ITZ4UQDZAVCNFSM6AAAAABQERV652VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRXGA4DSNBVHE. You are receiving this because you authored the thread.

EimanMarzouk commented 1 month ago

I need a moment to set up the recurring payment again. I changed it so users wouldn't get an error message.

I'll set up everything again initiate a payment and send a fresh log to you Med venlig hilsen / Kind regards

Eiman Marzouk Telefon: 20 62 78 73 E-mail: @.***

On 21 Oct 2024, at 17.39, Eiman Marzouk @.***> wrote:

Hi Marcus

Sure. I’m assuming that you want the woo log?

There’s a screenshot attached of the log

<212873221–13629.png>

Best Regards \ Med venlig hilsen Eiman Marzouk

Email: @.***

On 21 Oct 2024, at 17.21, Marcus @.***> wrote:



Hi Eiman,

Thank you for reporting this issue.

We will figure this out for you.

Are you able to send me the entire log file? You can email it to @. @.> Kind regards, Marcus Dahl

— Reply to this email directly, view it on GitHub https://github.com/vippsas/vipps-recurring-woocommerce/issues/99#issuecomment-2426994358, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIZGCGW5GS5Z7HD7FDZN2DZ4ULWTAVCNFSM6AAAAABQERV652VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRWHE4TIMZVHA. You are receiving this because you authored the thread.