Paypal final Donation Reponse?

Options
I'm working on my PayPal API form, and I have it working pretty well using the success redirect to a PageBuilder page with an S120 transaction summary tag.


https://secure3.convio.net/cmf/_temp/form.htm


I'm curious how we would handle this completely outside of Luminate. The docs say it works just like donate, so go look there. But it doesn't really. The form callback fires with the donationReponse redirect over to PayPal. So how do I ever get the donationReponse from PayPal with the actual donation result?


donate is simple:


Post - > API donationReponse


But with startDonation its:


Post -> API donationReponse -> redirect to PayPal -> redirect to
CRDonationAPI -> redirect to the finish_success_redirect page


So what can I do on finish_success_redirect to show a donation summary if that isn't a PB page?

Tagged:

Comments

  • Below is code we used at WWF for PayPal and each API form design has an static error page that carries through the form field values.

    if (selectedPay == 'paypal') {
    $('#method').val('startDonation');
    $('#method').after('<input type="hidden" name="extproc" id="extproc" value="paypal" />');
    $('#extproc').after('<input type="hidden" name="finish_success_redirect" id="finish_success_redirect" value="'+donate_success_url+'" />');
    $('#finish_success_redirect').after('<input type="hidden" name="finish_error_redirect" id="finish_error_redirect" value="https://support.worldwildlife.org/site/SPageServer?pagename=paperless_monthly_error&src_pagename=paperpless_monthly" />');
    $("input[name='donate_button']").next('p').css('display','none');
    } else {
    $('#method').val('donate');
    if ($('#extproc').length > 0) {
    $('#extproc').remove();
    $('#finish_success_redirect').remove();
    $('#finish_error_redirect').remove();
    }
    $("input[name='donate_button']").next('p').css('display','block');
    }

  • Thanks Sara!


    "...each API form design has an static error page that carries through the form field values."


    So that's the part I'm interested in. How are you getting those values on your success page, if not with S120 tags?
  • Brian Mucha:

    Thanks Sara!


    "...each API form design has an static error page that carries through the form field values."


    So that's the part I'm interested in. How are you getting those values on your success page, if not with S120 tags?

    S120 + set. URL parameters


    https://support.worldwildlife.org/site/SPageServer?pagename=paperless_monthly_error

    Includes a static table with S120 and a hidden form with the form field values where the submit returns you to the API form.

Categories