Closed HarryLee186 closed 3 years ago
That's strange. I've asked Mollie support to look into this.
What is the status of the payment?
The checkoutUrl will only be available on net-yet-paid-payments, so status open
.
This is before getting to the payment screen, using the code snippet from this repo's readme. So yes I would imagine the payment status would be open(this snippet works perfectly with other methods as outlined in my issue)
This behaviour is a bit weird, but if you remove this obsolete line it works:
$payment = Mollie::api()->payments->get($payment->id);
I'll ask Mollie support if they can fix this in the api. Nice catch!
Closing this for now, let me know if it should be reopened.
When using the przelewy24 payment method, the checkout link that is returned in the API response is null
Expected Behavior
The checkout link should return correctly, such as:
Current Behavior
The checkout link is null, shown below:
Steps to Reproduce (for bugs)
"mollie/laravel-mollie": "2.7.0",
to your composer.json and run a composer installpublic function preparePayment() { $payment = Mollie::api()->payments->create([ "amount" => [ "currency" => "EUR", "value" => "10.00" // You must send the correct number of decimals, thus we enforce the use of strings ], "description" => "Order #12345", "redirectUrl" => route('order.success'), "webhookUrl" => route('webhooks.mollie'), "method" => 'przelewy24', "metadata" => [ "order_id" => "12345", ], ]);
}