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

"invalid Request Message. The request contains structural errors." #37

Open
mustafaeida opened this issue Nov 5, 2024 · 0 comments
Open

Comments

@mustafaeida
Copy link

When I tried using "Mada," I always get the result:

"invalid Request Message. The request contains structural errors."

I contacted technical support, and they informed me:

Kindly note that regarding the issue you faced, please make sure that you send the below parameter and use the mentioned testing cards for testing.

CustomParameters[3DS2_enrolled]=true // This parameter should be added for testing in the test environment in the checkout request.

Also, please keep the price as a decimal and have no fractions.

I tried testing by setting the amount without decimal points or setting 3DS2_enrolled => true, but I still get the same error.

Can you please assist with this issue or advise on what steps I should follow?

Thank you very much.


            $amount = 11;
            $brand = $request->brand;
            $trackable_data = [
                'product' => $order?->service?->title,
//                'product_id' => $order->id,
                'product_id' => $order?->service->id ?? $order->id,
                'order_id' => $order->id,
                '3DS2_enrolled' => true
            ];

            return LaravelHyperpay::addBilling(new HyperPayBilling($request, [
                "billing.country" => "SA",
            ]))->checkout($trackable_data, $order->user, $amount, $brand, $request);
            
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

1 participant