Category : paypal

After I click on paypal’s Button , the window of paypal appears for 2seconds and then disappear 1 I’m using this method : https://dev.to/alamriku/how-to-integrate-paypal-payment-gateway-in-laravel-8-x-ba6 Also Using srmklive/paypal version~3 That’s the console : 2 This is the JavaScript Code : <script src="https://www.paypal.com/sdk/js?client-id=xxxxxxxxxxxxxxxxxxxxxx…&currency=USD" data-namespace="paypal_sdk"> </script> <script> // Render the PayPal button into #paypal-button-container paypal_sdk.Buttons({ // Call your ..

Read more

I’m using srmklive Paypal v1, and when the payment is successful how I cam transfer the customer’s billing to the database, is it related to the paypalcontroller of maybe javascript (ajax)? This is my PaypalController: <?php namespace AppHttpControllers; use AppInvoice; use AppItem; use CarbonCarbon; use IlluminateHttpRequest; use IlluminateSupportFacadesStorage; use SrmklivePayPalServicesAdaptivePayments; use SrmklivePayPalServicesExpressCheckout; class PayPalController extends ..

Read more

I’m working on project where i need to integrate PayPal for Payments. I’ve Integrated PayPal in Laravel 8 by help of this link https://devnote.in/how-to-integrate-paypal-payment-gateway-with-laravel/ Everything is working perfect.But I can not able to see transaction in my sandbox activity Tab so i debugged the code what i found in response is "CHECKOUTSTATUS" => "PaymentActionNotInitiated" What ..

Read more

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

Im trying to implement paypal for ages, my major problem is, that i dont understand where the paypal login is coming from. https://websolutionstuff.com/post/how-to-integrate-paypal-payment-gateway-in-laravel Here ive absolutly no clue where the magic happens. https://www.itsolutionstuff.com/post/laravel-58-paypal-integration-tutorialexample.html Here is suggest it is the line return redirect($response[‘paypal_link’]); ? Is that true? What does this line? The problem for me is ..

Read more

How do I post this Paypal response details to database I have succefully made payment using smart button paypal. I am able to capture the response details using console log. Now How do I post the response array to database using laravel. Onapproval onApprove: function(data, actions) { let token = document.querySelector(‘meta[name="csrf-token"]’).getAttribute(‘content’); // This function captures ..

Read more

I am trying to implement paypal sandbox in my project i have created a trait inside the app folder use GuzzleHttpClient; trait ConsumesExternalServices{ public function makeRequest($method,$requestUrl,$queryParams=[],$formParams=[], $headers=[], $isJsonRequest=false) { $client= new Client([ ‘base_uri’ => $this->baseUri, ]); if(method_exists($this,’resolveAuthorization’)) { $this->resolveAuthorization($queryParams,$formParams,$headers); } $response=$client->request($method,$requestUrl,[ $isJsonRequest ?’json’ : ‘form_params’ => $formParams, ‘headers’ => $headers, ‘query’ =>$queryParams, ]); $response=$response->getBody()->getContents(); if(method_exists($this,’decodeResponse’)) ..

Read more

I am trying to implement paypal sandbox in my project i have created a trait inside the app folder <?php namespace AppTraits; use GuzzleHttpClient; trait ConsumesExternalServices{ public function makeRequest($method,$requestUrl,$queryParams=[],$formParams=[], $headers=[], $isJsonRequest=false) { $client= new Client([ ‘base_uri’ => $this->baseUri, ]); if(method_exists($this,’resolveAuthorization’)) { $this->resolveAuthorization($queryParams,$formParams,$headers); } $response=$client->request($method,$requestUrl,[ $isJsonRequest ?’json’ : ‘form_params’ => $formParams, ‘headers’ => $headers, ‘query’ =>$queryParams, ..

Read more

(Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/billing-agreements/.) getting this error once I try to complete the agreement process enter image description here $id = my_created_plan_id protected function agreement($id) { $agreement = new Agreement(); $agreement->setName(‘Base Agreement’) ->setDescription(‘Basic Agreement’) // ->setStartDate(date("Y-m-d").’T9:45:04Z’); ->setStartDate(‘2021-07-05T9:45:04Z’); $agreement->setPlan($this->Plan($id)); $agreement->setPayer($this->payer()); $agreement->setShippingAddress($this->shippingAddress()); $agreement = $agreement->create($this->apiContext); return $agreement->getApprovalLink(); } /** * @param $id * ..

Read more

I’m trying to implement IPN in my Laravel project, a post request from my website is working thanks to "csrf", i try to implement it like written here: https://developer.paypal.com/docs/api-basics/notifications/ipn/ht-ipn/ in my routes/web.php: Route::post(‘i’, [IController::class, ‘y’])->name(‘i’); and in IController whats written on the side: public function y() { error_log(‘function y called’); // STEP 1: read POST ..

Read more

I am trying to call the PayPal server to set up the transaction but it returns a 419 PAGE EXPIRED error on the console. PayPal create order script createOrder: function(data, actions) { return fetch(‘/create-payment’, { method: ‘post’ }).then(function(res) { return res.json(); }).then(function(orderData) { return orderData.id; }); }, Laravel Route Route::post(‘/create-payment’, [PayPalController::class, ‘create_payment’])->name(‘create-payment’); Controller public function ..

Read more

We have integrated the PayPal API in the website dilmilay.com where the stripe is working fine with live and sandbox API. Then added PayPal sandbox API that worked but the live API is not working and I am not sure where is the issue. Sometimes it says your card was declined. Let’s try another card. ..

Read more

namespace AppHttpControllers; use Exception; use IlluminateHttpRequest; use IlluminateSupportFacadesInput; use PayPalApiAmount; use PayPalApiDetails; use PayPalApiItem; /** All Paypal Details class **/ use PayPalApiItemList; use PayPalApiPayer; use PayPalApiPayment; use PayPalApiPaymentExecution; use PayPalApiRedirectUrls; use PayPalApiTransaction; use PayPalAuthOAuthTokenCredential; use PayPalRestApiContext; use Redirect; use Session; use URL; class PayPalController extends Controller { /** * Create a new controller instance. * ..

Read more