#Petr

1 messages · Page 1 of 1 (latest)

rocky monolithBOT
silk pebble
#

Hi there!

#

What do you mean by "return"?

quiet valve
#

refund all sum

#

or make it so that I get the data for linking the card without debiting funds

#

for paymentIntent

silk pebble
quiet valve
#

and f it is possible to pass a parameter so that there is no write-off of funds, but I received paymentIntent
i send
$this->order_send = [
'line_items' => $this->order_send['items'],
"metadata" => ["order_id" => $this->order_id, "user_id" => $this->user['id'], 'email' => $this->user['email'],],
'client_reference_id' => $this->order_id,
'mode' => 'payment',
'success_url' => $this->payment['returnUrl'],
'cancel_url' => $this->payment['url'] . '?isError=true',
'payment_intent_data' => ['setup_future_usage' => 'off_session'],

        ];
silk pebble
#

What do you mean by "there is no write-off of funds"?

quiet valve
#

payment of 1 usd for linking a card with a subsequent refund of 1 usd

silk pebble
quiet valve
#

👍

silk pebble
#

Note that if your goal is to save a card for later, then you should use Checkout Session in setup mode instead

rocky monolithBOT
quiet valve
#

i can use charge?

#

when using $stripe->checkout->sessions->retrieve i get the object
what should be passed from it to $stripe->refunds->create to return

#

"id": "cs_test_a17C1uROCcFPOexmwCPZ0lFvXASP19kLPPszgnXGu6YHN3jvxBVGDH0dNU",
"object": "checkout.session",

?

polar oasis
#

Use it for the refund.

untold rock
#

Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.