-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SafeCharge: Support tokens #4948
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Can you update the commit message with a description of what you are adding and is this possible to test with some unit tests?
|
||
def add_network_token(post, payment, options) | ||
post[:sg_CAVV] = payment.payment_cryptogram | ||
post[:sg_ECI] = options[:three_d_secure] && options[:three_d_secure][:eci] || '05' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be the ECI for the network token or the 3DS ECI value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh that's a good question, probably the network token. Since this is not related to the ticket and it will need some additional testing I'll create a ticket for it.
Yes, I'll do that. |
1875239
to
a72ea3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
a72ea3d
to
1d396aa
Compare
Allow processing payments sith tokens. A token is returned by SafeCharge in the previous response to represent the customers' credit card. Remote: 34 tests, 96 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed Unit: 30 tests, 160 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
1d396aa
to
7108e98
Compare
Remote:
34 tests, 96 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
Unit:
29 tests, 160 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed