function commerce_payflow_paypal_remote_status in Commerce PayPal 7.2
Returns the PayPal remote status that corresponds to the given Payflow transaction type.
2 calls to commerce_payflow_paypal_remote_status()
- commerce_payflow_link_redirect_form_submit in modules/
payflow/ commerce_payflow.module - Payment method callback: redirect form return submission.
- commerce_payflow_link_reference_form_submit in modules/
payflow/ includes/ commerce_payflow.admin.inc - Submit handler: process a reference transaction via Payflow Pro.
File
- modules/
payflow/ commerce_payflow.module, line 1558 - Implements PayPal Payments Advanced (U.S. only) and Payflow Link Hosted Checkout pages and Transparent Redirect.
Code
function commerce_payflow_paypal_remote_status($trxtype) {
switch ($trxtype) {
case 'A':
return 'Pending';
case 'S':
case 'D':
return 'Completed';
case 'V':
return 'Voided';
case 'C':
return 'Refunded';
default:
return NULL;
}
}