paypal-sandbox

Laravel 5 catching PayPal PHP API 400 errors on localhost:8000

梦想的初衷 提交于 2019-12-25 05:05:57
问题 Using the PayPal API with my Laravel 5.2 install, specifically this package: https://github.com/anouarabdsslm/laravel-paypalpayment The package works great! and I am taking payments perfectly! I am struggling to catch and redirect when incorrect details e.g. bank card details are entered by a user. The Laravel application just throws a 400 error. What I am wanting to do is catch the errors and redirect back and notify the user. The code below is where I make a request: try { // ### Create

Exception Using PayPal-PHP-SDK [Http response code 400]

删除回忆录丶 提交于 2019-12-24 23:34:30
问题 I'm following a tutorial about how to use PayPal-PHP-SDK and i got stuck in somewhere with this error in the console: [Sun Mar 08 16:11:21.729977 2015] [:error] [pid 4484:tid 1760] [client ::1:4308] PHP Fatal error: Uncaught exception 'PayPal\\Exception\\PayPalConnectionException' with message 'Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/payment.' in C:\\UniServerZ\\www\\PayPal\\vendor\\paypal\\rest-api-sdk-php\\lib\\PayPal\\Core\\PayPalHttpConnection

Why paypal Redirect is executed after Page_Load?

守給你的承諾、 提交于 2019-12-24 22:14:35
问题 Oh dear paypal, I'd like to know why the "return redirect Url" page won't load if I call Response.AppendHeader . You see, I'm trying to make a file download automatically after the user has payed on paypal's page so I put the following code on my Page_Load If Not IsNothing(Request.QueryString("paymentId")) Then Dim paypalUtils As New PayPalUtils paypalUtils.ProcessPayPalResponse(Request.QueryString("paymentId").ToString(), Request.QueryString("PayerID").ToString()) TransmitFile() End If My

invalid email address error when trying to integrate a donations button?

ぃ、小莉子 提交于 2019-12-24 16:10:14
问题 The paypal guide is very confusing. I want to add a donate button to my templates on my development machine for testing. The guides point to creating a donation button from their website, which I have done (modified a bit to accept a custom donation amount): <form id="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_donations"> <input type="hidden" name="amount" value="33"> <input type="hidden" name="encrypted" value="

Paypal - redirect after payment to my own page

你说的曾经没有我的故事 提交于 2019-12-24 12:30:21
问题 I would like to automatically redirecta a user after successful payment to my own "thank you" page. Currently I am working with Paypal under the sandbox account and on my localhost. Is there any way to do it? I tried to browse through the admin account in sandbox, but I didn't find something useful... 回答1: You simply need to add a "return" variable to your button. If you're manually creating the button, it's just a hidden field named "return" with value set to your Thank You page. Eg: <input

PayPal production working differently than sandbox

一曲冷凌霜 提交于 2019-12-24 12:20:10
问题 I have built an application, that sends a notification url with the GUID of the logged in user to PayPal, and upon completion of purchase, the url is called, and after verification, the user database entry updates the column purchased from 0 to 1. The user then clicks the return to app button, and the premium functionality displays based on the purchased column. I have been testing this over the last few months in the sandbox. 100% of the times tested (including after this issue), the premium

Swagger Format for PayPal Payment API

我们两清 提交于 2019-12-24 07:35:08
问题 I'm new to OpenAPI and I need some help to create a basic swagger file for PayPal's payment API to create a payment from our platform. Note : OAuth is already configured. Below is a basic swagger file but I don't know where to add the paymet request information (i.e. intent, payer, transactions etc.) into: { "swagger": "2.0", "info": { "description": "this is a payment request to through PayPal", "title": "Swagger PayPal Payment", "version": "1.0.0" }, "host": "api.sandbox.paypal.com",

paypal Amount Total mismatch

巧了我就是萌 提交于 2019-12-24 07:27:43
问题 When I check in my website using Paypal it gives me this message: "Checkout Error - Amount total mismatch" I used Microsoft tutorial to implement PayPal: https://docs.microsoft.com/en-us/aspnet/web-forms/overview/getting-started/getting-started-with-aspnet-45-web-forms/checkout-and-payment-with-paypal I did exactly what it said I even did twice but somehow keep getting this error Appreciate your help Thanks public partial class CheckoutReview : System.Web.UI.Page { protected void Page_Load

Get transaction id from paypal sdk 2.0.1

放肆的年华 提交于 2019-12-24 03:36:09
问题 How to get Transaction id from paypal sdk 2.0.1, i searched a lot but i am stuck at getting transaction id from paypal sdk 2.0.1. check response below;- { client = { environment = sandbox; "paypal_sdk_version" = "2.0.1"; platform = iOS; "product_name" = "PayPal iOS SDK"; }; response = { "create_time" = "2014-04-01T07:02:34Z"; id = "PAY-3J588144TJ947892HKM5GJCQ"; intent = sale; state = approved; }; "response_type" = payment; } Above code i got pay id but not getting transaction id, how can i

Laravel 5 catching 400 response from PayPal API

寵の児 提交于 2019-12-24 02:23:33
问题 I asked a very specific question located here: Laravel 5 catching PayPal PHP API 400 errors on localhost:8000 As nobody could help I want to make it a more open question about catching a 400 error from the PayPal API. I am making requests to PayPal, when a successful request is made everything works perfectly and I get a lovely response object, which I can work with and action accordingly. When for instance incorrect card details are entered Laravel throws a 400 error and fails to catch the