RacoonsGroup / spree_one_page_checkout

BSD 3-Clause "New" or "Revised" License
6 stars 17 forks source link

Payment Gateway Not Passing Information #6

Open nathanael2020 opened 11 years ago

nathanael2020 commented 11 years ago

Hi again. I was wondering if anyone else has had trouble getting Spree to pass information to the payment gateway (first name, last name, billing address, charge amount). The same thing happens in sandbox and production.

I've tried with a shop set up with multi-step checkout and the proper information is passed.

When I look at my Braintree dashboard, I see verifications successful with the CVV, but the AVS Street Address Response and the AVS Postal Code Response are (I) (not provided).

When I go to submit a charge for settlement, I have to put in the customer's information and the order total amount manually.

Any ideas? Is this something others have encountered with one-page-checkout?

Thanks,

Nathanael

vp993 commented 11 years ago

Hello. Sorry, I can investigate this issue on the weekend, because I'm very busy now.

nathanael2020 commented 11 years ago

Hi Snuff. Thanks for looking into this. I don't understand the inner workings of the payment processing in Spree to know what's going on, but I did notice in the log the following line (with firstname and lastname populated, but first_name and last_name not... I've replaced some values there with '*'s, so keep in mind that the asterisks were added when I posted this reply):

Started PUT "/checkout/update/payment" for 24.5.103.178 at 2013-08-21 16:42:54 +0000 Processing by Spree::CheckoutController#update as HTML Parameters: {"utf8"=>"✓", "authenticitytoken"=>"****", "order"=>{"bill_addressattributes"=>{"firstname"=>"Nathanael", "lastname"=>"**_", "address1"=>"***", "address2"=>"", "city"=>"San Francisco", "country_id"=>"214", "stateid"=>"276110813", "zipcode"=>"94110", "phone"=>"****_"}, "use_billing"=>"1", "payments_attributes"=>[{"payment_method_id"=>"931422121"}]}, "paymentsource"=>{"931422121"=>{"number"=>"[FILTERED]", "month"=>"", "year"=>"****", "verification_value"=>"[FILTERED]", "first_name"=>"", "last_name"=>""}}, "commit"=>"Checkout", "state"=>"payment"}

I recall that first_name and last_name were populated when I used the multi-step checkout, and I believe that the billing/shipping addresses also were passed to Braintree (though I'm not certain of that).

I should say though that the card verification works and a payment token is created that I can charge even with this issue. But this will be a problem when volume picks up. Also, I can't capture payments through Spree... I get a "transaction_id is invalid", so on the back end, orders become stuck and I can't send a "shipment confirmation" email to customers. Maybe related, maybe not.

Cheers,

Nathanael

vp993 commented 11 years ago

I'm sorry for the late reply. We have a lot work:( Are you need help now?

jameslin101 commented 10 years ago

I'm having the same problem as well with braintree. I'm trying to use an existing card from a previous order and getting this AVS response: Street Address not provided (I). Postal Code not provided (I). In my source object I do have the address_id set to the billing address. This works in sandbox but not in production.