Category : payment

I am trying to use PayPal as a payment method on my website. I am using Laravel framework and GuzzleHttp package. Creating an order runs smoothly. Problem comes when trying to capture an order using id. php artisan tinker >>> $paypal = new AppServicesPayPalService; => AppServicesPayPalService {#3447} >>> $paypal->createOrder(500.00, ‘EUR’); => {#3478 +"id": "3NK71944KB9544808", +"status": ..

Read more

lets say a monthly recurring payment on a subscription fails it retries automatically on next attempt but is there any way we can try for a charge on that failed payment of subscription when we update a card or retry with same card instead of waiting for stripe to charge automatically on next retry? Source: ..

Read more

I was working on the Quickbooks API for one of my projects. I’m getting the following error: GuzzleHttpExceptionClientException Client error: POST https://sandbox-quickbooks.api.intuit.com//*Private Info */ resulted in a 400 Bad Request response: {"Fault":{"Error":[{"Message":"Request has invalid or unsupported property","Detail":"Property Name:Unrecognized field (truncated…) The Code: I have no idea what it is saying to me to fix it. ..

Read more

I’m working with stripe integration in laravel and see code of another dev like .. <form action="/payment" method="POST"> <script src="https://checkout.stripe.com class="stripe-button checkout-button button alt" key="HERE existing key (in real version of code)" data-amount="{{ $total*100 }}" data-locale="auto" data-currency="eur"> </script> </form> This code should send stripeToken & stripeEmail because backend trying to catch it like : $token ..

Read more

I was working on the Quickbooks API for one of my projects. I’m getting the following error: GuzzleHttpExceptionClientException Client error: POST https://sandbox-quickbooks.api.intuit.com/v3/company/4620816365163801940/invoice?minorversion=57 resulted in a 400 Bad Request response: {"Fault":{"Error":[{"Message":"Request has invalid or unsupported property","Detail":"Property Name:Unrecognized field (truncated…) The Code: $invoice = $http->post( ‘https://sandbox-quickbooks.api.intuit.com/v3/company/’.config(‘services.quickbooks.realmId’).’/invoice?minorversion=57′, [ ‘headers’ => [ ‘Accept’=> ‘application/json’, ‘Content-type’=> ‘application/json’, ‘Authorization’=> ‘Bearer ‘.$oauth[‘access_token’] ..

Read more

I installed a package from packagist. But when I try to use it from blade file, it gives me the following error, ParseError syntax error, unexpected end of file, expecting "elseif" or "else" or "endif" (View: C:xampphtdocsLMSMontInsresourcesviewscheckout.blade.php) checkout.blade.php file, <x-pay-here-checkout-form :payable="$payment" success-url="{{ route(‘checkout.success’) }}" cancelled-url="{{ route(‘checkout.cancelled’) }}" form-class="bg-white rounded w-full shadow-sm px-6 pt-2" > <!– ..

Read more

I’m trying to get client_secret to be used in Mobile device to make stripe payment successful. Here is the code how I’m calling Intent StripeStripe::setApiKey(‘KEY_HERE’); try { $intent = StripePaymentIntent::create([ ‘amount’ => 109, ‘currency’ => ‘usd’, ]); $client_secret = $intent->client_secret; return response()->json([ ‘success’ => true, ‘client_secret’ => $client_secret, ‘message’ => null ]); } catch (CardException ..

Read more

I implemented payment gateway in my laravel project, when payment is done, it’ll redirect to a success page. But after payment success that page showing POST method is not supported for this route. here is my controller page: public function payment_success(Request $request){ if ($request->has(‘success’)){ $data = $request->get(‘success’); return view(‘payments.payment_success’, [ ‘data’ => $data, ]); } ..

Read more

I have an error: "Cannot use object of type PayPalApiAmount as array", I kinda confused what’s the first thing to fix. Here are the errors: E:laragonwwwthepaymentssappHttpControllersPaypalController.php if (empty(Input::get(‘PayerID’)) || empty(Input::get(‘token’))) { Session::put(‘error’,’Payment failed’); return Redirect::route(‘paywithpaypal’); } $payment = Payment::get($payment_id, $this->_api_context); /** PaymentExecution object includes information necessary **/ /** to execute a PayPal account payment. **/ ..

Read more

this is my payment gateway page <?php $MERCHANT_KEY = "WTLZQBOb"; // add your id $SALT = "6MyvUWk9pP"; // add your id //$PAYU_BASE_URL = "https://test.payu.in"; $PAYU_BASE_URL = "https://secure.payu.in"; $action = ”; $txnid = substr(hash(‘sha256’, mt_rand() . microtime()), 0, 20); $posted = array(); $posted = array( ‘key’ => $MERCHANT_KEY, ‘txnid’ => $txnid, ‘amount’ => 1, ‘firstname’ => ..

Read more

Please I am trying to submit payment using Paystack payment gateway using laravel package PAYSTACK-LARAVEL by Unicodedeveloper, when I submitted payment only the amount, email, metadata field get submitted the other fields like first_name, last_name, phone get submitted as null I don’t know why? anyone with an idea why this is happening pls help. Here ..

Read more

Here is my output please give a proper solution for this. I use SetExpressCheckoutand recurring payment method. [TIMESTAMP] => 2020-12-07T10:49:30Z [CORRELATIONID] => 1bb2ac76ef965 [ACK] => Failure [L_ERRORCODE0] => 10004 [L_SHORTMESSAGE0] => Invalid Request Error. [L_LONGMESSAGE0] => Transaction refused because of an invalid argument. [ERRORS] => Array ( [0] => Array ( [L_ERRORCODE] => 10004 [L_SHORTMESSAGE] ..

Read more