We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
Give the url as parameter while creating charge, you can pass
Redirect URL (redirect_url) : Once the payment is succeed coinbase will redirect to the redirect_url specified in the create charge request
redirect_url
Cancel URL (cancel_url) Once the payment is cancelled coinbase will redirect to the cancel_url specified in the create charge request
cancel_url
$newRequest['name'] = $payment_name; $newRequest['description'] = $payment_description; $newRequest['pricing_type'] = 'fixed_price'; $newRequest['metadata'] = [ 'customer_id' => $customer_email, 'customer_name' => $customer_name ]; $newRequest['local_price'] = ['currency' => $currency, 'amount' => $amount]; $newRequest['redirect_url'] = 'https//example.com/payment-success'; $newRequest['cancel_url'] = 'https//example.com/payment-cancelled'; Coinbase::createCharge($newRequest);
The request will be as below
{ "name": "Payment name", "description": "payment description", "pricing_type": "fixed_price", "metadata": { "customer_id": "customer_id", "customer_name": "customer_name" }, "local_price": { "currency": "USD", "amount": 1000 }, "redirect_url": "https//example.com/payment-success", "cancel_url": "https//example.com/payment-cancelled" }
Sorry, something went wrong.
https://docs.cloud.coinbase.com/commerce/reference/createcharge
$charge = Coinbase::createCharge([ 'name' => 'Name', 'description' => 'Description', 'local_price' => [ 'amount' => 100, 'currency' => 'USD', ], 'pricing_type' => 'fixed_price', 'redirect_url' => 'https//example.com/payment-success', ]);
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: