paypal


Pay on paypal without the need of creating an account


I'm using paypal's sandbox to test payments to a website i'm developing and I want the user to have the ability to pay directly with a credit card without the need of creating/using a paypal account.
What's happening is that the user only have this option when the United States option in country field is selected, otherwise the user has to pay with a paypal account.
When selected option is United States
When selected option is Portugal.
The account I'm using is from Portugal
I have the "PayPal Account Optional" feature on at my sandbox's account settings
The submit form is Buy Now type (aka _xclick)
Any idea why paypal is having this behavior?
I'm submiting this form:
<form name="paypalform" id="paypalform" action="#(paypalUrl)" method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="amount" value="99">
<input type="hidden" name="item_name" value="#(itemName)">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="custom" value="#(Model.OrderId)"> <!--Transaction variable-->
<input type="hidden" name="business" value="#(paypalId)">
<input type="hidden" name="no_shipping" value="2">
</form>
The "#(...)" are just variables.
Thanks in advance.
According to this thread (from www.TipsAndTricks-HQ.com), PayPal issued legal agreements a few years ago for certain countries which forbid guest checkout. Citizens in some countries can still do guest checkout, but, due to legal requirements, citizens in certain countries may be required to create a PayPal account before they can checkout.
I would venture to guess that this is due to the fact that PayPal is registered as a U.S. company. Because of this, they must abide by U.S. laws for financial institutions.
What your trying to achieve can be done with paypals SDKs
You should try and use Paypals new SDK
https://github.com/paypal?utf8=%E2%9C%93&query=sdk
With it you can take credit card payments, store credit card details within paypals vault (for later use), etc... without leaving your site.
This link is a sample from paypals github showing you how to do credit card payment
https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/payments/CreatePayment.php
This is a tutoiral playlist that is really good and will help get you started https://www.youtube.com/watch?v=8ArEzyCEKl4&list=PLfdtiltiRHWE_c8jjW5OeweL1c_8uqcnW

Related Links

Retrieve original credit card info given a PayPal PNREF
What can one do with PayPal API keys
paypal subscription button not working expected
PayPal Sandbox not receiving IPN?
Logout Paypal Express account after payment is completed
Paypal API Error 10485 - Prestashop
Paypal cart item issue
Credit Card Payment Notification
is the sandbox broken - 500 error [duplicate]
Opencart 2.0.1.1 - 'Status=INVALID StatusDetail= Cannot match the MD5 Hash. Order might be tampered with.'
Error Connecting To PayPal API
PAYPAL Billing Plans API paypal-subscriptions - Automatic deduction The failure to renew
Error processing paypal payments in production
Why does the PayPal API sandbox environment return different states for create payment?
Payflow Link - Simple Form with Recurring Billing
LOCALECODE in paypal express checkout not working

Categories

HOME
makefile
converter
facebook-graph-api
google-contacts
steam
windows-store-apps
survival-analysis
codeeffects
branch.io
defragmentation
file-io
i2c
internet-explorer-11
gimp
netflix-feign
ipfs
criteria
cakephp-2.9
nixos
android-source
cortex-a
wysiwyg
public-key-encryption
x-frame-options
webmethods
sign
eclipse-luna
python-unicode
internet-explorer-8
prestodb
eclipselink
rails-activerecord
profile
jquery-waypoints
samsung-mobile
cep
referenceerror
lmdb
rowcount
apache-cloudstack
picturebox
m2e
threshold
von-neumann
npm-publish
forecasting
codesys
mongoexport
dart-pub
tripwire
spring-bean
powermta
cppunit
filepath
lumen-5.3
ti-basic
jenkins-jira-trigger
rhel6
fontconfig
search-box
shinyjs
project-template
c64
rstudio-server
git-annex
gherkin
database-backups
shipitjs
console-redirect
freefem++
supportmapfragment
inet
enyo
selendroid
textkit
response-headers
base32
mogrify
jython-2.7
kallithea
temp-tables
coin-flipping
neoload
alertifyjs
ifft
zipalign
dynamics-ax-2009
phpsh
mvs
code-conversion
moq-3
couchdb-lucene
symfony-2.0
fotoware
wcf-web-api
parameterization
responsetext
jquery-selectbox
serp
opengl-es-lighting
drawtext
visual-c++-2008-express
callgrind

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App