Skip to content

Navigation Menu

Sign in
Sign up

Not Get Redirect URL #51

Unanswered
Arifcom asked this question in Q&A
Discussion options

Hi, can you help me?
I have a question, this is my code below:
$response = $bill->create( $id_collection, 'test@gmail.com', null, 'Buy a product', '4000', 'https://apitest.com/payment/callback', 'Buy a product', [ "redirect_url" => "https://test.com/redirect", "reference_1" => "aaa", "reference_2" => "bbb" ] );
Why I can not get redirect_url?
[email] => test@gmail.com [mobile] => [name] => BUY A PRODUCT [url] => https://billplz-staging.herokuapp.com/bills/4vv7cfla [reference_1_label] => Reference 1 [reference_1] => aaa [reference_2_label] => Reference 2 [reference_2] => bbb [redirect_url] => [callback_url] => https://apitest.com/payment/callbsack [description] => Buy a product [paid_at] =>
the redirect_url is empty
please help me, thank you...

You must be logged in to vote

Replies: 1 comment

Comment options

Update: I missed the supplied redirect_url value. Sorry.

From the documentation on Billplz.com, you need to supply redirect_url because it is an optional parameter.

From this documentation in the repo README.md, it mentioned that the redirect_url parameter is optional, and can be passed as the 8th parameter.

To use the redirect_url parameter, you have to make sure the route is available on your system, so that Billplz can redirect to the URL after everything is done on the payment gateway page.

Hope this answers your inquiry.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #50 on May 27, 2021 02:37.

AltStyle によって変換されたページ (->オリジナル) /