Commit 5d6060de authored by jenlampton's avatar jenlampton

Record a few more additional values for subscriptions.

parent 0c45be46
......@@ -60,6 +60,10 @@ Installation
one (1) and twelve (12) months.
- Interval (1 to 365)
- unit (days or months)
With subscriptions, you may also want to include (hidden) fields for
'subscriptionId', 'customerProfileId', and 'customerPaymentProfileId'.
These values are returned from and may be useful for customers
or admins in the future.
* As the last field in the Webform, add a hidden field 'Transaction ID'.
Select 'Transaction ID' as the key to map to. The transaction
......@@ -348,7 +348,12 @@ function authorizenetwebform_webform_client_form_submit($form, &$form_state) {
if ($response_array['messages']['resultCode'] == 'Ok') {
drupal_set_message(t('Your payment has been processed, thank you.'));
$text = t('Your payment has been processed, thank you.');
if (array_key_exists('subscriptionId', $response_array)) {
$id = $response_array['subscriptionId'];
$text .= ' ' . t('Your subscription ID is @id', array('@id' => $id));
elseif ($response_array['messages']['resultCode'] == 'Error') {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment