I installed 1.0.0.beta1 pre-release, trying to run...
# support
a
I installed 1.0.0.beta1 pre-release, trying to run Paypal wizard, after loggin in it throws this (after Agree and Connect to Paypal's sandbox):
it stuck on this. but sandbox doesn't send confirmational emails..
wizard doesn't create new method on 1.0.0.beta1, please someone confirm that or refute
@George Mendoza hi, did you try new version?
g
Hi @Alexander V. Was out on vacation. Can you try the latest update 1.0.0.beta2? Thanks!
a
I tried, seems like it works, but I wasn't able to make test payment with paypal account or credit card, didn't figure it out yet
On credit card there is: "Things don't appear to be working at the moment." On account balance:
Copy code
[SolidusPaypalCommercePlatform::Client#execute] #<PayPalCheckoutSdk::Orders::OrdersAuthorizeRequest:0x00007f5575abe8a8 @headers={"Content-Type"=>"application/json"}, 
@body=nil, @verb="POST", @path="/v2/checkout/orders/4E273902K31525213/authorize?">
[SolidusPaypalCommercePlatform::Client#execute] #<OpenStruct name="UNPROCESSABLE_ENTITY", details=[#<OpenStruct issue="TRANSACTION_REFUSED", description="The request was refused">], 
message="The requested action could not be performed, semantically incorrect, or failed business validation.",
g
Hello @Alexander V. I was able to integrate the Paypal extension with a local test app. Can you try reproducing the following steps on your machine to the test the Paypal extension? Thanks! 1. Clone https://github.com/gsmendoza/solidus_store. 2. Check out the rails-7-0-4--solidus-3-2-4-gem--default-install branch. Check the git log to see what changes I have made to the app in order to integrate SolidusPaypalCommercePlatform. 3. Set up the local database of your app:
rails db:setup; rails spree_sample:load
. 4. If you haven't done already, create a PayPal sandbox account. Follow the instructions from https://developer.paypal.com/tools/sandbox/. 5. Run the app server. 6. Click on New Payment Method in http://localhost:3000/admin/payment_methods. Fill up the name of the payment method and set Stores to "Sample Store". 7. Once you have created the payment method, set its Client and Client Secret to your sandbox credentials. 8. Try checking out an item from the store. 9. In the payment tab of the checkout, you should now see an option to pay via PayPal. 10. When paying via PayPal, log in with the test personal user account that comes with your Sandbox account. You should find it at https://developer.paypal.com/dashboard/accounts. If you view the account, you should be able to see the user's password as well. 11. Once you've logged in to your test personal user account, you should be able to pay the item with your PayPal balance. Click on "Continue to Review Order" button to continue with the checkout. 12. You should see the Confirm tab of the checkout. You should be able to place the order and complete the checkout.
a
wow, thanks for that detailed guide, George
I made it n my own app now, without downloading yours
the problem was (I guess) that when wizard creates payment method it have wrong APIs (I can't find them anywhere in my sandbox account). Now I created method with New method button and used API credentials from sandbox business account as you said