Closed unieagle closed 8 years ago
@pierre code updated.
General question: were you able to run the regression tests against the sandbox (rake test:remote:spec
)?
@pierre can not test via rake test:remote:spec
, got:
Unsuccessful add_payment_method: {"exception_message":"wsse:InvalidSecurity: \nSecurity Data : illegal null input\n","payment_plugin_status":"CANCELED"}
@pierre will improve this PR again once find a path to retrieve the card type in case there is only token available. May discuss with you next week.
@pierre can not test via
rake test:remote:spec
It looks like you didn't configure your credentials (see the cybersource.yml).
find a path to retrieve the card type in case there is only token available
In case there is only a token available, your options are (as mentioned in my comment above):
cybersource_payment_methods
entry (your original patch): when the card was tokenized, the card type was most likely knownThere is a third option which is to retrieve the card type from CyberSource vault. This has some PCI implications though (and you probably don't need it).
@pierre add some integration tests, now all the tests are green;
made the change that only send soft descriptor when all the information is available, I think currently this is enough, since GDT will send full credit card information to KB, no cybersource token involved.
The currently use case is that credit card information will stored in the billing_record_responses
table, is this method good for this case? Thanks!
add some integration tests, now all the tests are green
👍
@pierre code updated.
Thanks! 👍
@sbrossie @pierre Please review, thanks!