Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8687091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:02:03+00:00 2026-06-12T23:02:03+00:00

I am using Paypals Adaptive Payments and Embedded flow feature to provide checkout via

  • 0

I am using Paypals Adaptive Payments and Embedded flow feature to provide checkout via a minibrowser. Everything seems to be working correctly in the sandbox environment except that when the payment is completed successfully, the user is never redirected to my returnUrl set in the PAY API request. Same goes for my cancelUrl.

After the payment is complete, the user is shown an order overview in the minibrowser and a button labelled “close”. If a user clicks this button, the minibrowser is closed.

If a user clicks cancel at any time, the minibrowser is closed.

There doesn’t seem to be a way to have my page aware of the change besides setting up some polling or something which doesn’t make sense, my returnUrl and cancelUrl should be used somewhere, right?

this is my code to get the redirect url (using adaptive payments gem):

pay_request = PaypalAdaptive::Request.new
data = {
  'requestEnvelope' => {'errorLanguage' => 'en_US'},
  'currencyCode' => 'USD',
  'receiverList' =>
          { 'receiver' => [
            {'email' => '...', 'amount'=> 10.00}
          ]},
  'actionType' => 'PAY',
  'returnUrl' => 'http://www.example.com/paid',
  'cancelUrl' => 'http://www.example.com/cancelled',
  'ipnNotificationUrl' => 'http://www.example.com/ipn'
}

pay_response = pay_request.pay(data)
redirect_to pay_response.approve_paypal_payment_url "mini"

And here is how I am setting up the paypal js:

var dg = new PAYPAL.apps.DGFlowMini({ trigger: "buyit", expType: "mini" });

It all seems pretty straight forward, not sure what I am missing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:02:06+00:00Added an answer on June 12, 2026 at 11:02 pm

    Well – seems to be a bug on our side – just tried it myself and confirmed with our integration teams. 🙁

    Unfortunately the other short term fix I can think of other than what you’ve mentioned (checking for the existence of the popup window) is to call the PaymentDetails API from your server side to check the status of the Payment. I’ve opened the bug on our side but don’t have an ETA.

    Edit 10/18: Sorry I’m wrong. This is working – it’s just that our developer guide is not providing all the required information. In case of the mini-browser flow, you would need to provide a ‘callbackFunction’ and also name your dgFlow variable as ‘dgFlowMini’. (the latter is important – as apdg.js is expecting the ‘dgFlowMini’ variable to be defined) Here is the code that works:

    var returnFromPayPal = function(){
       alert("Returned from PayPal");
       // Here you would need to pass on the payKey to your server side handle to call the PaymentDetails API to make sure Payment has been successful or not
      // based on the payment status- redirect to your success or cancel/failed urls
    }
    var dgFlowMini = new PAYPAL.apps.DGFlowMini({trigger: 'em_authz_button', expType: 'mini', callbackFunction: 'returnFromPayPal'});
    

    I have a working sample here: https://pp-ap-sample.appspot.com/adaptivesample?action=pay (make sure you select mini as the Experience Type)

    We will get our docs updated and also cleanup apdg.js to remove the dependency on the JS variable name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First time I am trying paypal adaptive payments. Everything is working fine, I tested
I'm using Adaptive Payments API in order to create a new parallel payment. I'm
I'm trying to start with Adaptive Payments by Paypal using SOAP interface. When adding
I am using the Parrallel payment feature of the Adaptive Payment API. In some
We are using Paypal Adaptive Chained payments to allow contributions on a crowd funding
I'm setting up an application using Paypal Adaptive Payments. I'm currently implementing the call
After a lot of digging we have paypal adaptive payments working in the sandbox
I am trying to use this gem for using the paypal adaptive payments and
Using Paypal's Adaptive Payments API, I am selling physical items that require a ship
I'm pretty new to using the PayPal Adaptive Payments API where we have two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.