Category : paypal

I use payever for paying and added PayPal. With this code I send the request, the problem is the part of the cart: ‘cart’ : [{ ‘name’ : PRODUCTS[product][‘name’], ‘price’ : price, ‘quantity’ : ‘1’, ‘description’ : PRODUCTS[product][‘description’] }], The request I send for cart is this: ‘cart’: ‘["name","price","quantity","description"]’ It returns an error from PayPal. ..

Read more

I would like somehow to protect my form , because currency can be edited via inspect on any browser , instead of EUR to PHP . REWARD or PRICE cannot be edited, only CURRENCY ! Codeigniter- PayPal public function paypal(){ $this->load->model(‘donate’); if(!$this->Maccount->is_logged_in()){ echo json_encode(array(‘error’ => ‘Please login first’)); } else{ if(isset($_POST[‘proccess_paypal’])){ $reward = (isset($_POST[‘reward’]) && ..

Read more

i have some problems using the paypal button. This is my php class used to create, parametrize and encrypt the button: <?php class paypal { public $config; public $payPalCertID = "myCertID"; public $myPrivateKeyFile; public $myPublicCertFile; public $paypalCertFile; public $caCertFile; public $openSSL; /** * @var bool $use_sandbox Indicates if the sandbox endpoint is used. */ private ..

Read more

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