Cybersource Secure Acceptance test cards - cybersource

Does anyone know if there are test card numbers that simulate failed transactions for Cybersource secure acceptance? I have searched the docs and can only find successful payment card numbers

Credit card numbers do not trigger errors. Instead it is usually the amount of the transaction. You can see a list of errors and their triggers here: https://developer.cybersource.com/api/developer-guides/dita-cybs-so-test-data/so_overview.html
Note that errors are grouped by the payment processor you are setup for. The default for a test account is Chase Paymentech.

You can use "4111111111111112" to trigger an invalid card number response. Source: testing guide

Related

AuthorizationException when calling Transaction.SubmitForPartialSettlement

When trying to submit a Transaction for a Partial Settlement, I'm getting the following exception + message:
Exception of type 'Braintree.Exceptions.AuthorizationException' was thrown.
There is nothing else to explain where I've gone wrong.
This is how I'm making the API call:
BraintreeHandler.Gateway.Transaction.SubmitForPartialSettlement(“transaction_id”, amount);
I know the Transaction Id is correct, because I'm loading the Transaction information beforehand. I'm also always using an amount less than the transaction total.
BraintreeHandler.Gateway.Transaction.SubmitForSettlement(“transaction_id”, amount);
The above works fine with an amount, but I don't want to submit the Transaction for settlement as I'd like to retain the ability to partially settle.
For example: If I have a Transaction Amount of £50 with a status of "Authorized", I'd like to be able to settle for £20, £20 and £10 on three separate occasions. With the SubmitForSettlement() method I can only settle for the initial £20 before the status is updated to "Submitted for Settlement". After this I can't perform any more partial settlements.
Information pertaining to the SubmitForPartialSettlement() method is conspicuously missing from the Transaction docs on the Braintree developer site. Has the method been deprecated? If not, how can I make use of it?
Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.
SubmitForPartialSettlement is a feature currently being tested and is not available to all merchants at this time. If you would like to request multiple partial settlements to be enabled for your account, please reach out to Braintree support or your account manager.
For the time being, you have the correct solution in SubmitForSettlement, passing in an amount less than or equal to the transaction amount. You will only be able to settle once.

How do I get my sandbox paypal account to accept a CSC number with my fake snadbox credit card?

How do I get my sandbox paypal account to accept a CSC number with my fake sandbox credit card number ?
I created a sandbox account with a sandbox credit card number and Expiration date. Paypal did not provide me with a CSC 4 digit number that I need for the Master Card number and Expiration date it generated for my sandbox account.
I did research and read other questions on stak overflow. From the answers I received I was told that all you need to do is provide a CSC number with 0's or any digit and it should go through and process the transaction for testing.
I also made sure that the credit card was not associated with an existing PayPal account and used faxe credit card numbers with a fake address and name but it did not work.
kind of new to doing this as a developer and running tests.
Any help would be greatly appreciated.
When testing through the sanbox only the paypal test creditcard numbers will work. The CSV matching those numbers you can make up yourself.
The list of testing numbers is shown here:
http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm

How to test online payment application?

We have ASP.NET application where you can purchase something. Of course, at the end of process there's a screen where you have to populate credit card number and other standard stuff. But, we don't have any real credit card number and I can't pass that step to test it further.
How can I test it?
You can use http://www.codeproject.com/Tips/515367/Validate-credit-card-number-with-Mod-10-algorithm tutorial to understand better the credit card number theory and can apply the same in your application for testing.. Or, you can use any kind of payment gateways like PayPal to test.

How to get credit card details of Paypal Recurring payments profile

I am creating a Recurring payment profile using Direct payment(credit card details entered during registration are not stored in database). I want to update/change the bill amount for every bill cycle(because billing is done per user per month).
I am using UpdateRecurringPaymentsProfileDetails API method to change the amount, but the method needs credit card details again(for each time it is called). I am getting the credit card details using GetRecurringPaymentsProfileDetails, but this method just returns the last 4 digits of credit card(and does not return CVV2, but this is not major issue here).
Is there any other option to get the full credit card details(at least credit card number) using Paypal APIs or should I have to store credit card numbers in my database? Any help would be highly appreciated.
It's unlikely that you'll be able to get the full credit card number from PayPal; that's why people use PayPal.
Storing credit card information in your database is a huge liability, and should be avoided if at all possible. Once you start storing that information, your company is responsible for keeping that information secure (and that includes developers). Use another third party component if you must, but don't take on such an enormous liability.
I don't know what company you work for, but that's not a decision that a developer should be making on their own. Entire companies have been shut down for mishandling credit card information. The law around that stuff is extremely murky, and even the smallest mistake can result in massive fines.

Recurring billing variable amount without storing credit card information

I have implemented few payment websites using PayPal Standard, PayPal Website Pro, PayPal Express and Authorize.Net.
Now I'm implementing a website which requires recurring billing. My only problem is variable amount, since I do not store credit card information, and amount is not fixed in each cycle.
Can we use either PayPal or Authorize.Net for my project? If not, could you please recommend any reliable payment gateway ($US for payment, and gateway located in US please) for that matter?
You can use a service like Authorize.Net's Customer Information Manager (CIM) to store the credit card and billing information for you and then you create your own scheduling engine that charges against the payment method you have stored for them using CIM. CIM also allows you to make off-cycle payments at any time as well.
Well the variable amount to bill shouldn't be a problem if you can put together whatever formula would be used in code. However if you aren't storing the actual credit card info (and I can understand why), then I don't see how you'd be able to charge the customer every month. Normally you need a credit card or bank information to do a direct transfer.
If you absolutely cannot store the information, then the only thing I can imagine is putting together an automated calculation and notification system that can send the customer an email with a link that brings them to a form so they can enter the information as simply as possible. Otherwise you'll need to save their credit card info somewhere secure and simply bill them every month, which isn't uncommon.
Have you looked into PayPal's IPN variables?
https://www.paypal.com/cgi-bin/webscr?cmd=p/acc/ipn-subscriptions-outside
Typically you have to cancel then reapprove a new subscription... but perhaps you can use the variables some how to do that programmatically.
I found a solution. PayPal calls ProcessReferencePayment.
At first, I need to charge the credit card using DoDirectPayment, and store the successful transaction number.
After that, I just call DoReferenceTransaction along with OrderTotal and ReferenceID (the previous transaction number).
DoReferenceTransactionRequestDetailsType
DoReferenceTransactionReq

Resources