Closed poornimasudha closed 4 years ago
Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:
However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.
It was a fault from my side,I passed complete setup intent instead of payment method in updateDefaultPaymentMethod.
I am using cashier for stripe in laravel 7, getting this error while adding payment method. " A parameter provided in the URL (payment_method) was repeated as a GET or POST parameter. You can only provide this information as a portion of the URL." I am passing payment intent to the blade like this, 'intent' => $user->createSetupIntent() In js,
cardButton.addEventListener('click', async (e) => { e.preventDefault(); const { setupIntent, error } = await stripe.confirmCardSetup( clientSecret, { payment_method: { card: cardElement, billing_details: { name: cardHolderName.value } } } ); if (error) {
});
then adding
$paymentMethod=$request['payment_method']; $user->updateDefaultPaymentMethod($paymentMethod); what is the meaning of this error?