#mohamedamineelgaouzi

1 messages · Page 1 of 1 (latest)

lament hollowBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

limber robin
#

Hello! What's the ID of the payment?

robust parcel
#

im using this function on y backend, i store the payment intent in db related to the booking try {
Stripe::setApiKey(config('services.stripe.secret'));
$intent = PaymentIntent::create([
'amount' => (int)($totalAmount),
'currency' => 'eur',
'payment_method' => $this->stripePaymentMethodId,
'description' => 'Payment for booking #'.$this->booking->id.'',
'application_fee_amount' => $fraisGlowApp,
'confirm' => true],

            ['stripe_account' =>  $this->booking->salon->users[0]->stripe_connect_id]
        );
        if ($intent->status == 'succeeded') {
        
            $this->paymentIntentId = $intent->id;
            $this->createBooking();
        }
limber robin
robust parcel
#

yes direct charge , how do i get charge_id; i only have paymentintentId

limber robin
#

You can pass the pi_xxx ID to the charge parameter

robust parcel
#

thanks

#

what about stripe fees ? it get refunded with payment also ??