
Adquiere este curso para tener acceso a todas las lecciones
Comprar curso25. Realizar cobro único con Stripe
En este capítulo veremos cómo se realiza el proceso de cobro en nuestro sitio web. El cobro puede ser efectuado mediante la selección de un método de pago previamente agregado por el usuario, o la posibilidad de agregar un nuevo método de pago en el momento del pago.
1 comentarios
Inicia sesión para comentar
Comentarios:
-
Molecode hace 1 año
tengo este error al efectuar el pago y no se como resolverlo le agradecería me ayudara a resolverlo
A `return_url` must be specified because this Payment Intent is configured to automatically accept the payment methods enabled in the Dashboard, some of which may require a full page redirect to succeed. If you do not want to accept redirect-based payment methods, set `automatic_payment_methods[enabled]` to `true` and `automatic_payment_methods[allow_redirects]` to `never` when creating Setup Intents and Payment Intents.
-
Antonio Góngora hace 1 año
Resolviste el error?, me pasa lo mismo.
-
Jaime Lugo hace 1 año
Lo resolvi de esta manera:
public function pucharse() {
auth()→user()→charge($this→product→price*100, $this→paymentMethodId,[
‘return_url’=> route('gracias'),
]);
$this→redirect(route('gracias'));
}
-