#mohamedamineelgaouzi
1 messages · Page 1 of 1 (latest)
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.
- mohamedamineelgaouzi, 16 hours ago, 29 messages
- mohamedamineelgaouzi, 17 hours ago, 7 messages
Hello! What's the ID of the payment?
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();
}
Ok, so it's a direct charge: https://stripe.com/docs/connect/direct-charges#issuing-refunds
yes direct charge , how do i get charge_id; i only have paymentintentId
You can pass the pi_xxx ID to the charge parameter