skip to Main Content

How can I integrate paypal payflow with rails. They have sdk available in java and .net Is there any gem for rails or any api calls for standard payment and recurring billing?

2

Answers


  1. We integrated paypal into our application using these gems:

    • https://github.com/paypal/sdk-core-ruby
    • https://github.com/paypal/PayPal-Ruby-SDK this one has good documentation.

    Folder with samples: https://github.com/paypal/PayPal-Ruby-SDK/tree/master/samples

    Updated:

    From PayFlow documentation:

    • The customer clicks Buy to purchase merchandise on your website.
    • You request a secure token by passing a token ID to the Gateway server. PayFlow doc related to tokens
    • The Gateway server returns the secure token and your token ID to your website.
    • You submit the secure token and token ID in an HTTP post to pages hosted on the Gateway server and redirect the customer’s browser to the hosted pages. documentation related to CC form rendering
    • The Gateway server uses the secure token to retrieve the amount and other transaction data.The customer submits their credit card number, expiration date, and other sensitive data directly to the host pages rather than to your website, easing your PCI compliance requirements.
    • The Gateway processes the payment through the payment processing network.
    • The Gateway server transparently returns the customer to the location on your website that you specified in the request to obtain a secure
      token. You display the results to the customer on your website.

    Full guide is here: guide

    There is also a gist that may help you understand it from code perspective: gist

    Login or Signup to reply.
  2. You can also look into ActiveMerchant. You can find your use case in the test folder of the gem.

    https://github.com/activemerchant/active_merchant/tree/master/test/remote/gateways

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search