I created a PayPal account and also created a sandbox personal account as well as business account.
From business account api credentials I got username:111abc.org , pwd :111, signature:A--hhshshhhhshsss. Using these details from test accounts I Formatted my API requests '
define('API_USERNAME', '111abc.org');
define('API_PASSWORD', '111');
define('API_SIGNATURE', 'A--hhshshhhhshsss');
define('API_ENDPOINT', 'https://api-3t.sandbox.paypal.com/nvp');
define('PAYPAL_URL', 'https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=');
when I logged into the paypal account in my site it shows for adding the credit card no:, I copied it from business account api credentials ,But it shows an error like this
This credit card has been denied by the bank that issued your credit card.
For details on why your card was denied, please contact your credit card issuer's customer service department. Or, you may want to try adding a different credit card.
How can I test my paypal with sandbox account?
Try using another test credit card number, you can generate these from the sandbox. Otherwise, I provided some test Visa credit card numbers below.
4024007128707576
4539805151652124
4539139443918832
4716590741304528
4929181369786890
4539585085827139
4024007104385751
4485728803730862
4716879534966209
4556279316725340
Related
Here, I am using Stripe APIs for payment gateway.
There is no requirement to make payment through bank account to stripe account and vise-versa.
That's why I am making payment with one stripe account to other stripe account.
This process I have done with "https://stripe.com/docs/connect/charges-transfers" that is complete working.
I have done all the functionality but main question is as below.
Question:
Can I hold payment in between from one stripe account to other stripe account?
For e.g. If one user is making payment from stripe account, the balance should be deduct.
But when I want to release that payment, then other user will get that balance.
In between is it possible to make the payment in hold?
Suggestions are welcome.
Thanks.
Here, after some research and some implementation, there is process to hold the funds by using Charge API with capture parameter that is related to bank account.
But there is no any API to capture or hold the funds from one stripe account to other stripe account because stripe is not a wallet service.
I have setup recurring billing with Paypal REST API, and the merchant account is set in Singapore, but i don't see an "Pay with Debit or Credit Card" option in the popup checkout page.
I have seen the answer in this thread: Paypal credit card REST api error mention that it's only available for Pro UK merchant account.
So anyone can suggest me any ideas i can deal with this problem?
The reason why the buyer receives that error is because of it a guest checkout. Guest Checkout is not a 100% that is offered to your with your current account. Guess Checkout provide the buyer to pay with credit card but it is not a 100% success due to few factors that will reject the transaction such as:
1. If the buyer uses a credit card that already attached to a PayPal account.
2. If the buyer uses an email that is already attached to a PayPal account.
3. If the buyer already attempts multiple time on the same credit card and they received a decline or incorrect information was entered. Then, the credit card will be blocked or put under risk from our end.
These are the reason of the error that your buyer is seeing. To resolve this, they would need to have/create a PayPal account or use a different credit card to make the purchase. Some other merchant they might have a Pro account which only available for US, Canada, New Zealand and Australia. You may refer to the link here.
https://developer.paypal.com/docs/classic/products/payflow-gateway/?mark=payflow%20country
They have to use a direct credit card integration.
thank you.
I have api for Paypal DoDirect Method on NVP [Direct Credit Card Payment], and I'm using php as base language.
I'm getting success with the transaction Or the response says so. But its not updating in the sandbox account.
include_once(drupal_get_path('module','payment_details').'/paypal_do_direct.php');
$paypalDoDirect = new PaypalDoDirect();
$paypalDoDirect->setApiUserName('crazyheartram_api1.gmail.com');
$paypalDoDirect->setApiPassword('1377690526');
$paypalDoDirect->setApiSignature('Afm3wtXOE0L1wd2UrjZtljZHC-wnAWHTSwJ-b7-rw3qPcLGaMSLINqP8');
$paypalDoDirect->setCreditCardType($cardType);
$paypalDoDirect->setEnvironment('sandbox');
$paypalDoDirect->setAmount($amount);
$paypalDoDirect->setCardExpMonth($expirationDate);
$paypalDoDirect->setCardExpYear($expirationYear);
$paypalDoDirect->setCardVerificationValue($cvv);
$paypalDoDirect->setFirstName($firstName);
$paypalDoDirect->setLastName($lastName);
$paypalDoDirect->setPayerEmail($email);
$paypalDoDirect->setCreditCardNumber($creditCardNumber);
$response= $paypalDoDirect->MakePayment();
I shared my sandbox bussiness-pro account details below:
Username: crazyheartram_api1.gmail.com
Password: 1377690526
Signature: Afm3wtXOE0L1wd2UrjZtljZHC-wnAWHTSwJ-b7-rw3qPcLGaMSLINqP8
And I did the transaction using my another personal account.
Credit card number: 4351521550740304
Credit card type: Visa
Expiration date: 7/2018
My expectation is, it should deduct the amount from personal account and credit it to the merchant (business-pro) account.
Any help highly appreciated. Thanks
EDITED
I'm using same code as mentioned in below url,
Payment Api using class
I just found this question, its exactly the same question as that of mine.
https://drupal.stackexchange.com/questions/82788/seperate-payment-integeration-for-selected-plan-type-using-drupal-form-with-payp
The DoDirectPayment call charges credit cards directly; it does not deduct from a PayPal account - even if that card is attached to an existing PayPal account. Therefore it doesn't show up as a transaction in your 'buyer' PayPal account.
I have problem with paypal sendbox testing account. I am trying to reproduce failing transaction when there is no enough funds but even when i make PERSONAL test account with 0$ i always get transaction complited and money is always transferd on BUSSINESS account. When i try to pay i get this message:
PayPal will use Discover XXXX-XXXX-XXXX-0295 to fund this transaction
if your bank does not have enough funds.
So every time it draws money from that card, but when i try to delete that card from PERSONAL user i am rejected.
Do you know what can cause this problem? :/
You can create test accounts without bank / balance / card.
Though if that's the case and the account doesn't have any funds, the buyer will be asked to add a card to his account prior to being redirected back to your site.
If you'd like to test a card decline (which is different than testing a PayPal account with no funds), enable 'Negative testing' on your buyer test account and set the 'amount' the AMT='104.86 for API error code 10486, or AMT=106.06 for API error code 10606.
See also https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/ht_ec_fundingfailure10486/ for more details about testing the API error 10486.
I have connect Authorize.net using direct connection. Currently we have used Visa and American Express for payment .
For adding this two feature "payment for MasterCard and Discover" we have need to do some changes in code or not?
You don't need to do anything with Authorize.Net. You need to contact your merchant account provider and have them add MasterCard and Discover Card to your merchant account.