Yet another question about sandbox transactions...
On https://developer.paypal.com/developer/accounts/ I have 2 sandbox accounts:
- [business] bob-facilitator@domain.com
- [personal] bob-buyer@domain.com
In my rails config I'm using activemerchant and I've set up my PaypalExpressGateway credentials using the API credentials from the business account above:
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::PaypalExpressGateway.new(
login: ENV['BOB-FACILITATOR-USERNAME']
password: ENV['BOB-FACILITATOR-PASSWORD']
signature: ENV['BOB-FACILITATOR-SIGNATURE']
)
I've got an orders controller and when I click a 'buy' button, the controller redirects the user to ::GATEWAY.redirect_url_for(paypal_response.token)
. This in my case means the user is redirected to:
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=A_TOKEN_FROM_PAYPAL
Then in the sandbox paypal store I login successfully with the buyer's account and click the continue button representing payment. I'm successfully redirected back to my success_url and receive what look like some successful params:
/orders/success/6?token=SAME_TOKEN_FROM_PAYPAL_AS_THE_ONE_ABOVE&PayerID=THE_PAYER_ID_OF_SANDBOX_BUYER_ACCOUNT
Ok so cool the transaction is finished but when I log into the sandbox paypal site with either the buyer or seller's login details, no transactions are listed. When I'm logged into my main paypal developer account, I also cannot see any transactions.
What is happening? Where can I find either the transactions or some debugging information?