nopcommerce paypal sandbox account not working - paypal

I am testing paypal sandbox on nopcommerce. I have created buyer(personal) and seller(business) accounts in paypal sandbox accounts. below is the business profile api credentials tab
Classic TEST API credentials
Username:
kokxxx-facilitator_api1.gmail.com
Password:1392740961
Signature:
AeM4pXm0nQ-QLw4cuGtd3QQ4pDODA4SRJcPPOAjzkizlkWnhbaXdAgen
I have configured paypal payment method I used business email kokoxxx-facilitator#gmail.com Notice it is different from username shown above
for pdt I copied and pasted the signature show above
I left ipn handler blank. Then I tested a transaction as guest and entered shipping and billing address ( my actual texas address!) here i don't know if this matters. in payment method I see two options credit card and yes credit card!! I proceed to enter the buyertest email as in sandbox account and entered my real credit card information.. and confrim.. it says success. but when I check sandbox account there is no mention of this transaction..also no notifications....can some one please guide me step by step how to make this work. I have paypal account and sandbox account had worked for me on sharepoint public website before.

CONFIGURATION FOR PAYPAL STANDARD IN NOPCOMMERCE
If you're using this gateway ensure that your primary store currency is supported by Paypal.
To use PDT, you must activate PDT and Auto Return in your PayPal account profile. You must also acquire a PDT identity token, which is used in all PDT communication you send to PayPal. Follow these steps to configure your account for PDT:
Log in to your PayPal account.
Click the Profile subtab.
Click Website Payment Preferences in the Seller Preferences column.
Under Auto Return for Website Payments, click the On radio button.
For the Return URL, enter the URL on your site that will receive the transaction ID posted by PayPal after a customer payment (http://www.yourStore.com/Plugins/PaymentPayPalStandard/PDTHandler).
Under Payment Data Transfer, click the On radio button.
Click Save.
Click Website Payment Preferences in the Seller Preferences column.
Scroll down to the Payment Data Transfer section of the page to view your PDT identity token.
Two ways to be able to receive IPN messages (optional):
The first way is to check 'Enable IPN' below. It will include in the request the url of you IPN handler
The second way is to confugure your paypal account to activate this service; follow these steps:
1. Log in to your Premier or Business account.
2. Click the Profile subtab.
3. Click Instant Payment Notification in the Selling Preferences column.
4. Click the 'Edit IPN Settings' button to update your settings.
5. Select 'Receive IPN messages' (Enabled) and enter the URL of your IPN handler (http://www.yourStore.com/Plugins/PaymentPayPalStandard/IPNHandler).
6. Click Save, and you should get a message that you have successfully activated IPN.
NOTES
Your PDT Token is not the same as your paypal signature.
To use paypal standard you need to use your PDT Identity Token.
The PDT Token is 59 characters long.
The PDT page can be found under profile/my account settings/Website Payment Preferences:
https://www.sandbox.paypal.com/uk/cgi-bin/webscr?cmd=_profile-website-payments
When doing a test transaction. Log into paypal with your buyers sandbox account.
Paypal e-mail notification can be found under profile/my account settings/Instant Payment Notification (IPN):
https://www.sandbox.paypal.com/uk/cgi-bin/webscr?cmd=_profile-ipn-notify
Nopcommerce email account must first be setup from configuration/email accounts and ensure a test email send successfully.
Nopcommerce e-mail notification can be setup from content management/message templates.

Related

How can I get PayPal sandbox payments accepted automatically?

I integrate PayPal in my Symfony 4 App, but in sandbox payments still need to validated as we see in the picture behind.
How can I get payments accepted automatically ?
and I'm asking also if in Live mode, I'm going to have the same problem because I didn't have a business account to test it.
Is the issue that the payments are "PENDING"? Is the PayPal sandbox email not confirmed?
Log in with Sandbox account at https://www.sandbox.paypal.com/businessprofile/settings/email to check and resend any confirmation email
Then log in with Live developer account at https://www.paypal.com/signin?intent=developer&returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Fnotifications%2F to read the message notifications and confirm the email
One of the reason of that happens when the currency of the payment is not the same with the Paypal JS loaded script in client size.
So What you don't know that in the script loaded, the default Currency is USD, So you have to specify the currency in this script :
<script src="https://www.paypal.com/sdk/js?currency=EUR&client-id={{ data['clientId'] }}">
So in this case if the client pays with EUR, the payment is auto-accepted, else, you have to configure the strategy in Settings when you have two different currencies, So you have to login with your Business Account, then go to the Account Settings > Payment preferences > Block Payments.

Not getting a confirmation email in Paypal sandbox

I have set up several buyer account in the sandbox and made purchases through my website. The purchases are "pending" because the test account email aren't confirmed through Paypal.
I've gone to my test account Notifications but there doesn't seem to be a way to confirm these accounts. All I get are emails like this:
We're sending you a new PayPal payment card
Hello Paula Hatchling,
We're sending you a new PayPal payment card. We'll mail it to: 1 Main StSan Jose, CA 95131US
When it arrives, you'll need to activate it:
- Log in to PayPal and go to your Settings.
- Click Payment preferences, then click Update under "In-store checkout."
- Click Activate under "Payment card."
After that, you can use your PayPal payment card in participating retail stores to pay with your balance - or any bank account or credit card linked to your PayPal account.
Help:
https://www.sandbox.paypal.com/us/cgi-bin/helpweb?cmd=_help
Security Center:
https://www.sandbox.paypal.com/us/security
Please don't reply to this email. It'll just confuse the computer that sent it and you won't get a response.
Copyright © 2015 PayPal, Inc. All rights reserved. PayPal is located at 2211 N. First St., San Jose, CA 95131.
PayPal Email ID PP1711 - f9455a693c000
How can I confirm these accounts?
Thanks,
Ann
Emails in the sandbox don't actually send to any real email address. They all get sent to the Notifications section of the account within your developer account.
Login to http://developer.paypal.com, go to your list of sandbox accounts, and find the little notifications link under each individual sandbox account. That is basically your inbox for that sandbox account.
For other developers who may face this issue. You need to login to https://www.sandbox.paypal.com then click on Profile settings (top right) and under Login and security, click Update Email.
In the next page, you'll see a list of email(s) which you can confirm by clicking on Edit and then Confirm this email. Once you've done that, go back to your developer account and check out the Notifications section at https://developer.paypal.com/developer/notifications
You'll see a notification with subject Activate Your PayPal Account.

OpenCart PayPal payment

I've stuck with PayPal Standard payment for OpenCart and found no solution yet.
What I've done:
Created a business account on sandbox.paypal.com
Set up following web preferences:
Auto return (URL specified)
PDT enabled
Enabled IPN (URL specified: http://my.domain.com/index.php?route=payment/pp_standard/callback
Created personal account on sandbox.paypal.com
Set up PayPal Standard extension in OpenCart:
Specified e-mail of the business account created above
Specified PDT token
Specified Sandbox mode
Transaction method - Sale
When I try to pay with PayPal I'm redirected to PayPal and pay proper amount. Then I'm automatically redirected back to my site by URL specified in PayPal business account's settings. So this tells me the payment recipient is recognized by PayPal.
At this point joy ends. In the sending account's activity log I see sending transactions. All of them have status Unclaimed. In the business account's log I see no transactions. In the IPN history I see no IPNs and in the web server's log I see no requests to /index.php?route=payment/pp_standard/callback.
I'm certainly missing something. But I can't figure - what.
In Paypal checkout section in open cart admin panel, go to the general tab of that, you will find test mode option, set it yes. and for debugging mode set it yes. Check your checkout process now. i think it will solve your problem.
I was having a similar issue a while back. For me, it was because the payments being sent to OpenCart were in a different currency to what was held in the Sandbox balance. E.g. OpenCart was sending orders in GBP but the Sandbox holds currency in USD.
I fixed by changing a setting in the Sandbox account.
Profile > My Settings > Block Payments > Click Update
On the page which appears, there is an option "Allow payments sent to me in a currency I do not hold:". I just set that to Yes.

Paypal where to set accept digital goods payment in sandbox

I've been trying this for few days. I've created some seller accounts, one of them I created early this year and it was working fine. Then when I return for this project this March, Paypal changed the API from x.com to developer.paypal.com. The old seller accounts were still working fine and can still accept the digital goods payments from the payer accounts that I created recently, however the new seller accounts, with BUSINESS type, suppose to be able to pay and accept payments got some issues. These newly created seller accounts receive the following warning:
You are not signed up to accept payment for digitally delivered goods.
Doing some research with google, I released I have to set the paypal business account for digital goods. But I can't find where to set it from the new paypal developer control panel. Even when I tried to log in to the sandbox version of paypal.com, using the seller accounts I created in the sandbox, I still can't find where I can set it. In my business setup, there are only two options for me, one is Paypal payments pro and other other is "Virtual Terminal". Any idea? Please help....
I've found the way to add express checkout for digital goods in sandbox, but I think Paypal should pay attention to this because the way I used was very clumsy.
First sign in to sandbox and choose a business account to log in to the sandbox by using the url provided in the Application/Sanbox Accounts. Then use the account that you want to set to accept digital goods checkout to log into the sandbox url, it should be www.sandbox.paypal.com/us/home
After logged in, go to my business setup and pay attention to the setup my payment solution. Click the view all products and you will be redirected to a new page. Please note the url now, the "sandbox" is missing. Now click on the express checkout button, or whatever you want to add to the payment solution, you will be redirected again. Now pay attention to the url, insert "sandbox" to the url, e.g www.paypal.com you have to replace it with www.sandbox.paypal.com, the rest of the url remain the same. Then press enter you will be redirected back to the business setup page. Now you can see your payment solution has become express checkout. It is stupid and I hope paypal can let us choose this directly from the control panel in the near future.
An alternative hides in Profile > My selling tools > API access > Update > At the bottom - Enable Express Checkout.
When I later go to My Account > My Business Setup I see: "Your payment solution: PayPal Digital Goods (Express Checkout)"

How to create PayPal website payment pro sandbox account?

I was trying to make website payment pro sandbox account. I followed all instructions (from my sellers sandbox account applied for website payment pro, clicked on "save and continue" button after entering all information) but I am getting blank page from PayPal as response.
Does anyone know how to create Paypal Payments pro in Sandbox account ?
Go to https://developer.paypal.com/ and login using a valid PayPal account.
Click on 'Dashboard'
Click on 'Accounts' under the 'Sandbox' heading
Use the following values:
Country: United States
Credit card: Visa
Bank account: No
Balance: Up to you
Password: Use something easy to remember
Create the account and retrieve the API credentials by clicking on the little arrow on the left of the account. Click 'Profile' followed by 'API Acess' in the modal window that opens up.
Create a test Business account.
Navigate to the Profile page of the Business account and click the Upgrade to Pro link.
Click Enable on the resulting screen.
I.
II.
Note: Once you enable PayPal Payments Pro for a test Business account, the setting is permanent and you cannot undo the configuration for that account. You create multiple Business test accounts with various settings in order to test all the variations you might need to handle with your application.
To create a Sandbox test account:
1. Log in to the Developer site (if you dont' have and id sign up first) at https://developer.paypal.com and navigate to Applications > Sandbox Accounts.
2. Click the Create Account button and populate the following fields:
Account type: Tick either the Personal or Business radio button.
Email address: Enter a valid email address of your choosing.
The email address doesn't need to be a real email address; the Sandbox doesn't send any email outside of the Sandbox environment. Email to Sandbox accounts, generated as a result of your test API requests, are listed on both the Notifications tab on the Developer site, as well as on the Sandbox test site.
Use the assigned email value to reference this test account in your API calls, and to log in to the Sandbox site when you want to review the details associated with the account.
Password: The password must be 8-20 alpha-numeric characters in length.
First and Last names: The optional name fields accept alpha-numeric characters.
PayPal balance: While this field is optional, it's a good idea to create test accounts with positive bank balances. Enter an integer value between 1 and 5000.
Bank verified account: You should create both Verified and Unverified test accounts so you can fully test your application.
Select payment card (Personal account type only): Test payments made with different payment cards by selecting either Discover or PayPal.
Credit card type: You must select a single credit card type for each test account. The Sandbox associates a mock credit card number with the account.
Log in with PayPal (Business account type only): Tick the I want to add Log in with PayPal to my site box and complete the following fields to enable testing the Log In with PayPal functionality: Display name, Return URL, Privacy policy URL, and User agreement URL
Notes: Use the Notes field to keep track of the test account details.
3. Click Create Account after completing the account details.
The new test account is listed with your other test accounts on the Accounts page.
for more details visit: https://www.x.com/developers/paypal/documentation-tools/ug_sandbox#accounts
Login to your https://developer.paypal.com/developer/accounts/.
Click on Accounts under Sandbox.
Open Profile for the account of your business account. and click on Upgrade to Pro.
Hope this helps!