Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

when only using PayPal invalid address on return #195

Closed
DevGW opened this issue Nov 8, 2018 · 3 comments
Closed

when only using PayPal invalid address on return #195

DevGW opened this issue Nov 8, 2018 · 3 comments

Comments

@DevGW
Copy link

DevGW commented Nov 8, 2018

When I'm using PayPal only for checkout everything goes correctly until return then I receive a flash message stating "invalid address" and the order does not go through. Also, noticed in the database for spree_addresses table, the state field is always NULL. Not sure if this is related or not.

below is output from return that fails:

↳ /Users/crypt3ch/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/bundler/gems/solidus_paypal_braintree-dbcee4ec1b09/app/controllers/solidus_paypal_braintree/client_tokens_controller.rb:17 Spree::PaymentMethod Exists (1.6ms) SELECT 1 AS one FROMspree_payment_methodsINNER JOINspree_store_payment_methodsONspree_payment_methods.id=spree_store_payment_methods.payment_method_idWHEREspree_payment_methods.deleted_atIS NULL ANDspree_store_payment_methods.store_id= 1 LIMIT 1 ↳ /Users/crypt3ch/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/bundler/gems/solidus_paypal_braintree-dbcee4ec1b09/app/controllers/solidus_paypal_braintree/client_tokens_controller.rb:17 (1.0ms) SELECTspree_payment_methods.idFROMspree_payment_methodsINNER JOINspree_store_payment_methodsONspree_payment_methods.id=spree_store_payment_methods.payment_method_idWHEREspree_payment_methods.deleted_atIS NULL ANDspree_store_payment_methods.store_id= 1 ↳ /Users/crypt3ch/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/bundler/gems/solidus_paypal_braintree-dbcee4ec1b09/app/controllers/solidus_paypal_braintree/client_tokens_controller.rb:17 SolidusPaypalBraintree::Gateway Load (0.5ms) SELECT spree_payment_methods.* FROM spree_payment_methodsWHEREspree_payment_methods.active= TRUE ANDspree_payment_methods.typeIN ('SolidusPaypalBraintree::Gateway') ANDspree_payment_methods.deleted_atIS NULL ANDspree_payment_methods.id= 4 ORDER BYspree_payment_methods.id` ASC LIMIT 1
↳ /Users/crypt3ch/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/bundler/gems/solidus_paypal_braintree-dbcee4ec1b09/app/controllers/solidus_paypal_braintree/client_tokens_controller.rb:18
D, [2018-11-08T15:58:59.116393 #50061] DEBUG -- : [Braintree] [08/Nov/2018 21:58:59 UTC] POST /merchants/yk3qyqt2ygxhm6vx/client_token
D, [2018-11-08T15:58:59.116456 #50061] DEBUG -- : [Braintree]
[Braintree]
[Braintree] 2
[Braintree]

I, [2018-11-08T15:58:59.419133 #50061] INFO -- : [Braintree] [08/Nov/2018 21:58:59 UTC] POST /merchants/yk3qyqt2ygxhm6vx/client_token 201
D, [2018-11-08T15:58:59.419181 #50061] DEBUG -- : [Braintree] [08/Nov/2018 21:58:59 UTC] 201 Created
D, [2018-11-08T15:58:59.419314 #50061] DEBUG -- : [Braintree]
[Braintree]
[Braintree] eyJ2ZXJzaW9uIjoyLCJhdXRob3JpemF0aW9uRmluZ2VycHJpbnQiOiI1ZjA3MmQ1MGUxM2VjZGM4ZjE2YzA4YjQ3YTVjMzFjOWJjMWI3ODI4MDBlNjc3ZDhiYmI2MTM4ZjA1NjdhNTk5fGNyZWF0ZWRfYXQ9MjAxOC0xMS0wOFQyMTo1ODo1OS4yMzcxNzY0MDIrMDAwMFx1MDAyNm1lcmNoYW50X2lkPXlrM3F5cXQyeWd4aG02dnhcdTAwMjZwdWJsaWNfa2V5PWRiZGZwMm5iOWYyaGdyc3MiLCJjb25maWdVcmwiOiJodHRwczovL2FwaS5zYW5kYm94LmJyYWludHJlZWdhdGV3YXkuY29tOjQ0My9tZXJjaGFudHMveWszcXlxdDJ5Z3hobTZ2eC9jbGllbnRfYXBpL3YxL2NvbmZpZ3VyYXRpb24iLCJncmFwaFFMIjp7InVybCI6Imh0dHBzOi8vcGF5bWVudHMuc2FuZGJveC5icmFpbnRyZWUtYXBpLmNvbS9ncmFwaHFsIiwiZGF0ZSI6IjIwMTgtMDUtMDgifSwiY2hhbGxlbmdlcyI6W10sImVudml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iOiJtYXN0ZXJjbGllbnQzIiwiYmlsbGluZ0FncmVlbWVudHNFbmFibGVkIjp0cnVlLCJtZXJjaGFudEFjY291bnRJZCI6ImppdHRob2xkaW5nc2luYyIsImN1cnJlbmN5SXNvQ29kZSI6IlVTRCJ9LCJtZXJjaGFudElkIjoieWszcXlxdDJ5Z3hobTZ2eCIsInZlbm1vIjoib2ZmIn0=
[Braintree]

Completed 200 OK in 573ms (Views: 0.6ms | ActiveRecord: 8.7ms)`

@dustineichler
Copy link

@asa644
Copy link

asa644 commented Feb 13, 2019

@RWSDev did you have any luck?

@kennyadsl
Copy link
Member

Closing, see #218

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants