protected function IPNHandler::getIpnValidationUrl in Commerce PayPal 8
Gets the IPN URL to be used for validation for IPN data.
Parameters
array $ipn_data: The IPN request data from PayPal.
Return value
string The IPN validation URL.
1 call to IPNHandler::getIpnValidationUrl()
- IPNHandler::process in src/
IPNHandler.php - Processes an incoming IPN request.
File
- src/
IPNHandler.php, line 107
Class
Namespace
Drupal\commerce_paypalCode
protected function getIpnValidationUrl(array $ipn_data) {
if (!empty($ipn_data['test_ipn']) && $ipn_data['test_ipn'] == 1) {
return 'https://ipnpb.sandbox.paypal.com/cgi-bin/webscr';
}
else {
return 'https://ipnpb.paypal.com/cgi-bin/webscr';
}
}