paypal

Paypal IPN process more than one custom variable

守給你的承諾、 提交于 2020-01-21 04:22:08
问题 So I've implemented paypal IPN in my site and I'm in the middle of the work process. Now I want to use more than 1 custom variable in the pp form currently I'm using this one only <input type="hidden" name="custom" value="<?php echo $user_id; ?>"> So I know the variable with the name 'custom' is allowed. I want to know if I can pass more variables so I can filter the payments based on their criterias. So if for example shipping is more than $0.00 I set a variable "shipping_cost" like this:

PayPal REST Sandbox API giving INTERNAL_SERVICE_ERROR

女生的网名这么多〃 提交于 2020-01-21 03:50:13
问题 I finished my PayPal REST API integration yesterday for executing simple payments through my website. My script does the following things: gets a bearer token creates a payment (allowing paypal as the only payment method) sends to user to PayPal for authorisation executes the payment This was all working perfectly in the Sandbox yesterday. Today I tried it (still in the Sandbox) and the execute command is returning an "INTERNAL_SERVICE_ERROR" message. The debug_id from my most recent attempt

PayPal Adaptive Payments - description field

ぐ巨炮叔叔 提交于 2020-01-19 06:01:28
问题 I'm using paypal adaptive payments for my website. I have different sellers and different products but the problem is that when a user buy something from my website in the payment summary there is the name and surname of the seller instead of the product name! I'm looking for a parameter to pass to display the product name instead of my name and the seller's name. I use PHP to redirect to the paypal's page. Thank you!! 回答1: Here is an official reply from PayPal I got today: You can display

Submit Multiple Forms With One Button

。_饼干妹妹 提交于 2020-01-19 01:46:52
问题 I am using $_SESSION to dynamically create forms for my web store. These forms hold the custom info for the product that the customer wants. This is the layout: Page1 Customer fills out form that looks something like this: <form action="page2" method="post"> <input type="text" name="size"> <input type="text" name="color"> <input type="submit" name="submit" value="Review Order"> </form> Page2 Customer reviews order details and has the option of adding more products. Customer goes back to page1

using adaptive payments / masspay with a billing agreement

こ雲淡風輕ζ 提交于 2020-01-17 14:02:11
问题 I'm setting up an ebay like website where there are buyers are sellers. When a user (both buyer and seller) signs up, I make them sign a paypal billing agreement with me. When a buyer sells an item, I charge the seller using the billing agreement. What I'm stuck on is sending that amount to the seller using the billing agreement . I realize I can use the MassPay or Adaptive Payments API to pay the seller but neither of those interfaces taking a billing agreement ID. They both only take the

PAYPAL CORS error

核能气质少年 提交于 2020-01-17 05:46:10
问题 I am using adaptivepayments api.The code to get paypal key is, PayRequest payRequest = new PayRequest(requestEnvelope, "PAY_PRIMARY", getProperties().getProperty("paypal_failed_url").trim() + bookingId, "SGD", receiverList, getProperties().getProperty("paypal_success_url").trim() + bookingId); payRequest.setFeesPayer("PRIMARYRECEIVER"); payRequest.setTrackingId(transactionKey); payRequest.setReceiverList(receiverList); AdaptivePaymentsService service = null; Map<String, String> sdkConfig =

Paypal development. encrypt transactions. php p12

走远了吗. 提交于 2020-01-17 01:25:08
问题 when i take a look at the paypal documentation, they say "Note that the PayPal SDK for PHP does not require SSL encryption". https://developer.paypal.com/docs/classic/api/apiCredentials/#encrypting-your-certificate Is the statement of this phrase, that i don't have to create a p12 certificate when working with php, but use the public_key.pem and paypal_public_key.pem ? If yes: Is it secure enough to create the encrypted form input elements without p12 certificate? If no: What do they mean? :-

Paypal REST PHP SDK giving me a 400 error (laravel library)

五迷三道 提交于 2020-01-16 18:27:07
问题 I'm using the paypal REST SDK for PHP, using the laravel wrapper which gives me a 400 error (bad input from what I understand) I mostly copied from the example found at: enter link description here Yet I'm getting a 400 error sent back. I can't figure out what I'm doing wrong: here's the code. $payer = Paypalpayment::Payer(); $payer->setPayment_method("paypal"); $item1 = Paypalpayment::Item(); $item1->setName('Lavender 6 oz') ->setCurrency('USD') ->setQuantity(1) ->setPrice('7.50'); $itemList

Pending Paypal IPN

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-16 12:19:07
问题 Paypal IPN request to my callback Pending status. In my workflow I only save the order after they pass all checking steps as: business email, mc_gross... and the status must be "Completed". So when I receive a request from Paypal with Pending status, system will not save order into the database. My question is will Paypal send another request after the order status change to Completed ? 回答1: Yes, when a pending transaction updates to Completed (or Failed, or whatever) you will get an

PayPal IPN Sandbox response always INVALID

不问归期 提交于 2020-01-16 10:42:48
问题 I'm trying to implement PayPals IPN on my website in asp.net using C#. I am using the sample code given by PayPal found here: https://cms.paypal.com/cms_content/GB/en_GB/files/developer/IPN_ASP_NET_C.txt I have enabled IPN on my account with the URL of the ipn on my site. The URL used in the code as you can see in the link above is the sandox url for paypal testing. I am using the IPN Simulator and It's giving me "IPN sent successfully response" but on my website it displays invalid every