Closed Haruteghiazaryan1987 closed 1 year ago
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',
]);
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 requestCancel URL (
cancel_url
) Once the payment is cancelled coinbase will redirect to the cancel_url specified in the create charge requestThe request will be as below