#SatriaRizali

1 messages · Page 1 of 1 (latest)

noble nimbusBOT
quick cloud
mild whale
#

thank youu

#

i will try it first

quick cloud
#

Good luck!

mild whale
#

$payment = $stripe->checkout->sessions->create([
'success_url' => 'https://example.com/success',
'cancel_url' => 'https://example.com/cancel',
'line_items' => [
[
'price_data' => [
'unit_amount' => 25000,
'currency' => 'jpy',
'tax_behavior' => 'exclusive',
'product_data' => [
'name' => 'Prefecture custom',
],
],
'quantity' => 1,
],
],
'automatic_tax' => [
'enabled' => true,
],
'mode' => 'payment',
'discounts' => [[
'coupon' => [
'percent_off' => 10,
'duration' => 'once'],
]],
]);

#

i try make direct discount , it seems not working

#

do i have make coupun every transaction ? can i just make direct when i create stripecheckout ? just like item , i make them directly when i create stripecheckout

quick cloud
#

Um not possible AFAIK. You would need to pre-create the Coupon first then use its Id

mild whale
quick cloud
#

It's a different object