How to deal with the profile name not matching the cc name? - laravel-spark

Laravel Spark 6
Using Braintree, but I think Stripe will be the same.
It seems odious to expect the profile name to match the credit card name. But it seems the case that you cannot add a payment method unless the profile name and the cc name match.
It seems easiest to just ask for the name on the card in the payment method dialog.
I know that you control whether or not the cvv is asked for from the Braintree dashboard. Is there a similar way for asking for the name?
Or do i have to go into the code for getting and submitting the cc information?
I appreciate any help.

Braintree and Stripe are different.
As of this time, Braintree doesn't seem to accept a user name at all.

Related

Paypal Adaptive Chained Payment

I am super confused on what this documentation is trying to say.(https://developer.paypal.com/docs/classic/adaptive-payments/integration-guide/APCallsHeadersAndPaymentTypes/)
Basically, I am trying to facilitate payments between 2 users. I also want to have a fee paid to me during this transaction. The confusing part of the documentation are the headers.
According to the reference you need these.
headers.put("X-PAYPAL-SECURITY-USERID", "tok261_biz_api.abc.com");
headers.put("X-PAYPAL-SECURITY-PASSWORD","123456");
headers.put("X-PAYPAL-SECURITY-SIGNATURE","Signature"
headers.put("X-PAYPAL-REQUEST-DATA-FORMAT", "JSON");
headers.put("X-PAYPAL-RESPONSE-DATA-FORMAT", "JSON");
headers.put("X-PAYPAL-APPLICATION-ID", "APP-APPID");
I don't know what to put for X-PAYPAL-SECURITY-USERID or X-PAYPAL-SECURITY-PASSWORD. I do not want to put my actual username and password. Is this what I am supposed to be doing to achieve this?
Those are your API credentials. You obtain those values in your PayPal profile under API Access, then choose the signature method.
Alternatively, you can click this link and login with your PayPal account to quickly obtain those values.

Validate name and address with the card number

I'm using Paypal Pro API to process my purchase. It works well with card number, expire date and security code but I need to validate the address and the owner name of the card as well.
Is there any parameters or functions in the API to do this? I didn't found anything in the docs. Or maybe it is an additional option in the Paypal developer control panel?
Assuming that we're talking about the Payflow Gateway API (for PayPal Payments Pro and other things), it appears you can do address verification--see the section entitled Using Address Verification Service. Notice the note there that says it doesn't check street names, in case that's a deal-breaker for you.
As for name validation, I can't find anything about that other than that it's typically passed in the sale transaction itself (section: Typical Sale Transaction Parameter String). Whether it's then validated by the banks as part of their end of the transaction, I couldn't say.
Hope that gets you a bit further. I haven't worked with any of this stuff myself.

How to manually trigger Paypal error 10486 in sandbox?

Paypal says, use CCREJECT-REFUSED for address1 in credit card detail. https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/ht_ec_fundingfailure10486/
I tried creating new test user (CC credential was automatically created). Login into sandbox and add CC detail I got from first step. I change address line to CCREJECT-REFUSED. Save it. And then tested it, checking out via sandbox. Error 10486 was not triggered.
Any hint?
Mistake I made was to edit the SHIPPING address instead of the BILLING address.
Your best bet is to log directly into https://www.sandbox.paypal.com and hit the 'Profile' tab and try to add or edit a card there.
Watch out for the following :
Make sure you put exactly CCREJECT-REFUSED for BILLING address Line 1 with no spaces and TWO C at the beginning
They seem to be incompetent to keep the site running smoothly at all times so just try again
later if you get Service Temporarily Unavailable.
Make sure if you're adding a new card (you can use your own real card number) that you aren't getting a message telling you This card number is already assigned to another PayPal account. For security reasons, each card may only be assigned to one PayPal account because then you'll not be adding anything
Make sure payment method is actually set to credit card before you hit Submit for the order.
It does actually work though (as of today)
Okay, I was wrong to assume that the error can be triggered using direct CC payment.
As the document suggest:
You need to create a test user account
Login into sandbox using fore-mentioned account.
Change address part of test user CC to: CCREJECT-REFUSED
Then, in order to test it, run your express checkout flow as usual. But on the last part, do not use direct CC input. Instead, choose the other option -- login into your test user paypal account.
You will then received this kind of response:
TIMESTAMP=2013%2d08%2d19T06%3a50%3a45Z&CORRELATIONID=6761aff7944b&ACK=Failure&VERSION=104&BUILD=7319395&L_ERRORCODE0=10486&L_SHORTMESSAGE0=This%20transaction%20couldn%27t%20be%20completed%2e&L_LONGMESSAGE0=This%20transaction%20couldn%27t%20be%20completed%2e%20Please%20redirect%20your%20customer%20to%20PayPal%2e&L_SEVERITYCODE0=Error
All of these answers are now out of date. It's impossible to add a card with CCREJECT-REFUSED as the address and, if you could, it wouldn't do anything. You should follow the instructions at: https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions/
For the majority of APIs exposed by PayPal, this usually involves setting the order amount to the desired error code after enabling negative testing mode for your sandbox business account.
For example, triggering a 10486 via the Express Checkout NVP API would involve setting the AMT to $104.86.
As taking directly from their tutorial: (see step 2)
Login to https://www.sandbox.paypal.com using your buyer's test PayPal account.
Replace the contents of the street address Line-1 of the buyer's test credit card, with CCREJECT-REFUSED.
Execute a typical Express Checkout payment flow against the Sandbox test environment using the same buyer account and with the same credit card that you just modified.
When you execute DoExpressCheckoutPayment, error code 10486 will be returned. Your code should redirect the buyer back to PayPal using the same redirect URL used to start the checkout flow and the same Express Checkout token.

Can't get sandbox account to post

A link on PayPal HELP sent me to this site. Not sure of the relationship if any, with PayPal.
Getting this error when using sandbox:
Sandbox error message:
"PayPal cannot process this transaction because of a problem with the seller's website. Please contact the seller directly to resolve this problem."
We use a custom ColdFusion shopping cart for our ecommerce site. The form we use works fine for our live, actual payment to PayPal. However, when we add the sandbox part of the URL for testing, we receive the following error message from PayPal:
“PayPal cannot process this transaction because of a problem with the seller's website. Please contact the seller directly to resolve this problem.”
I have both the personal and business accounts set up on the developer sites and am using the business account on sandbox form.. That seemed to go okay But that’s as far as I got. Once that was done there was no guide I could find to suggest what to do next.
I’ve checked my developer account activity and history and there is none.
I continue to get this error also: “We’re sorry, but something went wrong. Please try again.” It’s at this URL:
https://developer.paypal.com/webapps/developer/applications/myapps
paypal sandbox merchant account error
At the URL above, the forum suggestion stated: “ .. click the link for sandbox accounts on the left” of the Applications Tab. But there is nothing there indicating “sandbox account” on the left side or anywhere.
I’d really like to see an example of a sandbox paypal form. There is a suggestion that this be used:
I have no idea how that should be incorporated. The question mark suggests a url, but where, in the form POST. Again, and example might clear all this up. Can’t find one. Or like this:
https://www.sandbox.paypal.com/cgi-bin/webscr?business=staff#domain.com.
I guess I need to “create a preconfigured test seller account.” But where? How? Just a big circle.
I’ve read other examples from others here in this forum but the suggestions don’t always seem to match up with the actual page, perhaps paypay developer site changed. So confusing. Round and round.
Obviously, everything else is working so we have the correct setup to charge but something must be wrong with the sandbox account. We have both business and personal accounts set up but the error remains. I’ve spent two hours researching but cannot find a clue to what the problem may be. The massive amount of data on PayPal is no help I’ve yet been able to find.
We’d use the standard Buy Now buttons but they have built in payment amounts. Our payment amounts change dynamically so we need to use a variable in the form of the payment amount so that’s why we decided to use a custom form.
I would ask that someone point me to an example of the basic html form looks like and the requirements of that form (allowing custom price amounts based on a variable amount) to send to PayPal sandbox. I imagine it’s not the form but something else because we must have that form correct or it would not work when sending an actual charge (with the sandbox of the form post removed).
So, more importantly, what might be wrong in the sandbox developer setup? There seems to be no way to test the accuracy of the setup on PayPal developer site, unless I’ve missed it somewhere. I’m a ColdFusion programmer and developer but this is too confusing. Obviously I’m not that great of a programmer.
Here is a sample of the redirect to Sandbox.PayPal.com:
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=staff#domain.com
You were just missing the cmd variable and value. You can pop your amount value in there and the item_name. If you want to see the actual HTML form I can drop one in here for you.
Here is a list of variables for PayPal Standard you can use:
https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/wp_standard_overview/
To create a Sandbox account you'll need to sign into Developer.PayPal.com, click on "Applications", then go to the "Sandbox accounts" section. You can create a new account there.

PayPal checkout - credit card tab by default

Is there anyway to make that the part where you enter your credit card information is open by default, instead of the part where you enter your paypal information?
I really need this, but wasn`t able to find anywhere!
The only way to do that is with Express Checkout. In your SetExpressCheckout request you set SOLUTIONTYPE=Sole and LANDINGPAGE=Billing.
This will force the full credit card form to be displayed so people can enter a credit card without creating a PayPal account...
This can't be done with Payments Standard, unfortunately. "Guest Checkout" is available with Payments Standard, but it's all cookie based, so if any person on the computer being used has ever signed in to a PayPal account it will assume that's what they'll be doing in the future and it won't present the credit card option.
EDIT
This question came up again and I had more information to provide. Check it out.
for people reaching here from google and still cant manage to solve it , there are several key factors to this :
PayPal parameters: if you look at PayPal's API there are 3 relevant fields: LANDINGPAGE, USERSELECTEDFUNDINGSOURCE, SOLUTIONTYPE .
Not sending email parameter. change email parameter to '' (blank) . if you do send email parameter it will always open the login tab.
Cookies. no matter what you do , if the user have a PayPal cookie on his browser , the login tab will open by default (and the above parameters will be ignored) there is no solution for that (as far as I know) so make sure you check if it works with a cookie virgin browser.
For those of you working on the latest implementation of Express Checkouts, all you need to do to have the credit card tab open by default is add an extra &SHIPTOCOUNTRYCODE=US(or any country code for the matter as default) to the nvpstring before doing a SetExpressCheckout and it will begin working like a wonder.
Cheers :)