I'm using the api to process contributions from some custom pages I have created, specifically the call to civicrm_api3('Contribution', 'transact', $params).
When I use PayPal Standard as my payment gateway how do I get the Cancel URL and Success URL to point back to the pages I have created? I can't see a way to override the default urls.
The Success url is http://example.com/administrator/?option=com_civicrm&task=civicrm/contribute/transact&_qf_ThankYou_display=1&qfKey= However I would like to redirect to http://example.com/index.php?option=com_xxx&task=payments.success
The Cancel url is http://example.com/administrator/?option=com_civicrm&task=civicrm/contribute/transact&_qf_Main_display=1&cancel=1&qfKey= However I would like to redirect to http://example.com/index.php?option=com_xxx&task=payments.cancel
Do I need to create my own Payment Gateway that inherits from the PayPal Payement Gateway? Or can I redirect the CiviCRM Tranact pages to point to the pages I need?
example.org
for anonymity.)paypal.com/asdf
=>example.org/civicrm/ipn/1
=>example.org/civicrm/contribute/thanks
=>example.org/
, and those steps are all potentially significant.