Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
A
authorizenetwebform
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Drupal.org issue queue
Drupal.org issue queue
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
project
authorizenetwebform
Commits
5d6060de
Commit
5d6060de
authored
Nov 25, 2018
by
jenlampton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Record a few more additional values for subscriptions.
parent
0c45be46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
INSTALL.txt
INSTALL.txt
+4
-0
authorizenetwebform.module
authorizenetwebform.module
+6
-1
No files found.
INSTALL.txt
View file @
5d6060de
...
...
@@ -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 Auth.net 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 Authorize.net key to map to. The transaction
...
...
authorizenetwebform.module
View file @
5d6060de
...
...
@@ -348,7 +348,12 @@ function authorizenetwebform_webform_client_form_submit($form, &$form_state) {
//dpm($response_array);
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
));
}
drupal_set_message
(
$text
);
}
elseif
(
$response_array
[
'messages'
][
'resultCode'
]
==
'Error'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment