PayPal Sandbox: Your session has ended - node.js

Even though I am using my buyer test account, when I run the paypal.billingAgreement.create, I am redirected to a page that states:
"This transaction has expired. Please return to the recipient's website to complete your transaction using their regular checkout flow."
My logs show no exceptions (partially shown below):
Billing Plan state changed to CREATED
For approving subscription via Paypal, first redirect user to: https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-7TT13145TK360674X
Payment token is: EC-7TT13145TK360674X
Sequence of my code is:
paypal.billingPlan.create
paypal.billingPlan.update
paypal.billingAgreement.create
Does anyone know why this could be happening?
Thanks in advance.

I had this problem when using Cloud9 online IDE.
My best guess is that C9 is rotating IP addresses for each call, and PayPal is validating not only on the token but also the IP Address.

Related

STRIPE error: In order to use Checkout, you must set an account or business name at https://dashboard.stripe.com/account

I have found this error message:
"In order to use Checkout, you must set an account or business name at https://dashboard.stripe.com/account"
several times when developing stripe connect.
But my account and business name is set all right.
I got this error when moving to Stripe's new implementation, which involves steps:
Add a checkout button to your webpage that sends your customer to a Stripe-hosted checkout page.
Create an order success page to show your customer after the payment.
It says to
First, make sure that you have set up an account name on the Stripe Dashboard.
Once I added a name to my (test) account, it all worked fine.
This is the error message when you want to use the same account for sending and receiving too.
Try to use a different account for sending.
It is quite confusing how stripe handles multiplle account with one login. Was never able to figure it out.
I got this error cause of i didn't setup https://dashboard.stripe.com/settings/account so,make sure you setup it .
enter image description here

Paypal REST integration - no error, but payment not processed

After some other issues we managed to go live with the PayPal REST integration. Sandbox works fine, by the way, so we assume that the code is o.k.
Well this is what happened on live System:
My first customer initiated her first payment via paypal.
The payment request shows as successfully executed on the Paypal Dashboard. No error!
But the customer always got the message that something is wrong with their creditcard.
According to Paypal customer support the credit Card is fine (and the customer successfully made other payments using the same credit Card with Paypal) but that somthing must be wrong with the payment request.
But as mentioned above I cannot see an error in the dashboard nor in the logfile.
Paypal Tech Support is not responding (since over a week), so maybe somebody here has seen this before and can advise?
Thanks a lot
Christoph

PayPal Rest API - 401 when creating an invoice

I'm getting a 401 error when I try to create a PayPal invoice. I'm using the nodejs REST API:
https://github.com/paypal/rest-api-sdk-nodejs
I did a quick test with the create invoice sample, changing the id and secret in the configure.js to those my app in sandbox. I get the 401 when this happens as well. The app is setup to allow invoice actions (it's in the scope parameter when I request the token), is there something else I need to enable?
I contacted PayPal technical support, they said to contact PayPal MTS. When I contacted them they said to contact technical support... I'm assuming it's something account related as that's the only thing I changed in the sample.
Edit 2014-09-17
I can get a token with curl:
{"scope":"https://uri.paypal.com/services/applications/webhooks https://uri.paypal.com/services/invoicing openid https://api.paypal.com/v1/payments/.* https://api.paypal.com/v1/vault/credit-card/.* https://api.paypal.com/v1/vault/credit-card","access_token":"A015QDaSWWVrhK.FNSZVZd-vDGflSm.g1H.4PnDeXaYDFqo","token_type":"Bearer","app_id":"APP-80W284485P519543T","expires_in":28800}
I'm using the samples from github (configure.js and invoice/create.js specifically) the only thing I changed was the client and secret in configure.
The e-mail in the request was the issue. It worked with the sample because it was the e-mail associated with the app. Changing the config id and secret to mine wasn't enough, the e-mail needed to be changed to mine as well.
Just spent a couple of hours trying to solve this very issue. The answer Dave gave above led me on the right track.
The "merchant e-mail" in the request has to be the Paypal Sandbox Developer Account associated with the REST API app in question. I hope this helps someone.
Below is a screenshot highlighting the property in Visual Studios and PostMan.

Trouble finishing transaction in Google digital wallet

Trouble finishing transaction in Google digital wallet.
I recieve the first screen from Google wallet.
When I press "Buy" on this screen.
I then get
"
Uh oh. There was a problem.
We couldn't complete your purchase because of a technical issue.
Details of the problem below:
Unfortunately, we could not confirm your purchase with the merchant's server. Your order has been canceled. Please contact the merchant if this problem continues.
130110 11:54:15-0500 F5HORI"
I have a posturl set up in my account, and the url is implemented on my server(i've used your java example) according to my server logs and diagnostics, the postback url is not getting called.
There is no auth on my server, the postback is running on port 8080.

Paypal payment for access to restricted area

I'd like to set up a part of my site as a 'restricted' area that you need to pay via Paypal to access. Can anyone offer some advice on how to do this? Ideally I'd like to have a 'subscribed' value in my database that I can check when people attempt to access the site to check if they have subscribed. I've started looking into IPN which might be the way to do it?
Many thanks
I'm working on a new store that will integrate with PayPal. From what I've read, yes, IPN seems like the way to do it. Have a Subscribe button, and when you receive an IPN message that indicates successful payment, update the user's 'subscribed' field. I think IPN also sends a message when their subscription runs out.

Resources