paypal

How can I change shipping amount before execute payment using PayPal restAPI

微笑、不失礼 提交于 2020-01-11 11:49:08
问题 I try to migrate our old express checkout process based on PayPal classic API to new RestAPI , but a question has arisen during the new process: How can I change shipping amount after create a payment and just before execute payment using PayPal restAPI? Request after create payment: { "intent": "sale", "payer": { "payment_method": "paypal" }, "transactions": [ { "amount": { "currency": "AUD", "total": "100", "details": { "shipping": "10", "subtotal": "75", "tax": "15" } }, "description":

implicit paypal payment - PAY - You do not have permission to execute this payment implicitly

半腔热情 提交于 2020-01-11 10:13:33
问题 I want to perform an implicit payment from my account (the paypal api signed one) into another (or multiple as parallel payment). I decided to use Adaptive Payments and have implemented the function to call the Pay action as follows $bodyparams = array ( "requestEnvelope.errorLanguage" => "en_US", 'actionType' => 'PAY', 'currencyCode' => 'USD', 'receiverList.receiver(0).email' => 'receiver@domain.com', 'receiverList.receiver(0).amount' => '1.00', 'senderEmail' => 'myaccount@domain.com', 'memo

Is there a way to set up recurring payments with the PayPal REST API?

不羁岁月 提交于 2020-01-11 07:21:12
问题 I read this question and this one. They both said (a year ago) that recurring payments via the REST API was in the works. On my client's website, customers need to be able to pay either in full (all at once — e.g., $1200 at check out) in installments ($1200 over 6 months at $200 per month) It is crucial that his website be notified when a customer pays. I have currently set this up for option #1: app.get("/cart/checkout/paypal", isLoggedIn, isVerified, function (req, res) { var user = req

Sending only order number instead of item names to PayPal in Woocommerce

 ̄綄美尐妖づ 提交于 2020-01-11 04:06:04
问题 In PayPal standard gateway of Woocommerce, I want to make Woocommerce sends only " order number " as the only item in the cart, instead of the itemized product list. For that, I tried to edit the class which is responsible for making a PayPal request here: woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php I tried to edit get_order_item_names() function to return "invoice" . $order->get_order_number() as the name of the only item, but it wasn't successful since

php paypal express checkout problem

China☆狼群 提交于 2020-01-11 02:29:06
问题 I'm trying to integrate paypal express checkout on my website. I was trying to check using sandbox. When I submit data from my site token is generated with no error but when redirected to paypal it's not showing payment amount. btw I'm using the code from paypal express checkout wizard. It will be helpful if some one points me to correct direction. require_once ("paypalfunctions.php"); $paymentAmount = 15; $currencyCodeType = "GBP"; $paymentType = "Sale"; $returnURL = "http://www.mysite.com

Paypal Developer/Sandbox new interface: cannot login with test accounts

五迷三道 提交于 2020-01-10 12:02:10
问题 I'm having problems on sandbox.paypal.com login with my test accounts since they've changed the interface. I was forced to create a new account on developer.paypal.com (which is now a beta) and import my old test accounts. I've done that but none of the accounts work anymore! I cannot login the sandbox with my merchant account and purchases aren't working. Anyone has the same problem? 回答1: Once you validate and log in using your PayPal credentials, you can import your individual sandbox

Paypal Developer/Sandbox new interface: cannot login with test accounts

纵然是瞬间 提交于 2020-01-10 11:59:09
问题 I'm having problems on sandbox.paypal.com login with my test accounts since they've changed the interface. I was forced to create a new account on developer.paypal.com (which is now a beta) and import my old test accounts. I've done that but none of the accounts work anymore! I cannot login the sandbox with my merchant account and purchases aren't working. Anyone has the same problem? 回答1: Once you validate and log in using your PayPal credentials, you can import your individual sandbox

Using API calling account as receiver account

久未见 提交于 2020-01-09 11:53:31
问题 I'm trying to integrate Paypal Adaptive checkout using Active Merchant and active_paypal_adaptive_payment gem. During User registration, User needs to register his/her paypal account in order to receive the payment during the transaction. I've setup all the credentials for activemerchant. While registering user Account in paypal I got the following error. You are logging into the account of the API caller of this transaction. Please change your login information and try again. Is it possible

Notice: Undefined index: value in

自作多情 提交于 2020-01-07 15:47:01
问题 I'm trying to change a payment extension of Opencart 1.6.5.1. What I want to do is show the option value in the PagSeguro system, this extension makes the connection between Opencart and PagSeguro The code I want to edit is inside of this: /* * Produtos */ foreach ($this->cart->getProducts() as $product) { $options_names = ''; foreach ($product['option'] as $option) { $options_names .= '/'.$option['name']; } // limite de 100 caracteres para a descrição do produto if($mb_substr){ $description

Notice: Undefined index: value in

两盒软妹~` 提交于 2020-01-07 15:46:31
问题 I'm trying to change a payment extension of Opencart 1.6.5.1. What I want to do is show the option value in the PagSeguro system, this extension makes the connection between Opencart and PagSeguro The code I want to edit is inside of this: /* * Produtos */ foreach ($this->cart->getProducts() as $product) { $options_names = ''; foreach ($product['option'] as $option) { $options_names .= '/'.$option['name']; } // limite de 100 caracteres para a descrição do produto if($mb_substr){ $description