How to receive payment data or user data from PayPal using paypal_permissions or another gem?

I use Rails and have to report payments. I need to receive payment information. I can’t figure out how to do this.

I found a paypal_permissions gem to get permissions on obtaion personal information. I need more, so I changed it. In the function update, the value TRANSACTION_DETAILS was added, the trading device get_transaction_details_data was added.

class MerchantsController < ApplicationController def update callback_url = URI.encode(merchants_request_permissions_callback_url) permissions = 'EXPRESS_CHECKOUT,DIRECT_PAYMENT,ACCESS_BASIC_PERSONAL_DATA,ACCESS_ADVANCED_PERSONAL_DATA,TRANSACTION_DETAILS' def get_transaction_details_data merchant access_token = merchant.ppp_access_token verifier = merchant.ppp_access_token_verifier ::PAYPAL_PERMISSIONS_GATEWAY.get_transaction_details_data(access_token, verifier) end end 

Is it correct? How can I receive transaction data and personal data?

+2
ruby-on-rails gem transactions paypal report
source share
1 answer

Can you try this stone: paypal_adaptive ?

0
source share

All Articles