Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recurring Payments Not Processing Correctly with WooCommerce #99

Open
EimanMarzouk opened this issue Oct 17, 2024 · 5 comments
Open

Recurring Payments Not Processing Correctly with WooCommerce #99

EimanMarzouk opened this issue Oct 17, 2024 · 5 comments

Comments

@EimanMarzouk
Copy link

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
Copy link
Collaborator

Marcuzz commented Oct 21, 2024

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 [email protected]

Kind regards,
Marcus Dahl

@EimanMarzouk
Copy link
Author

EimanMarzouk commented Oct 21, 2024 via email

@Marcuzz
Copy link
Collaborator

Marcuzz commented Oct 21, 2024

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 [email protected] instead 😄

@EimanMarzouk
Copy link
Author

EimanMarzouk commented Oct 21, 2024 via email

@EimanMarzouk
Copy link
Author

EimanMarzouk commented Oct 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants