Skip to content
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

Fixes checkout v2 integration #3248

Merged
merged 2 commits into from
Jun 22, 2019
Merged

Conversation

filipebarcos
Copy link
Contributor

Formatting + 2 fixes

  • Card on File: the way we were sending that value was wrong/misplaced.
  • Phone numbers: Checkout.com does not support non-digit chars for the source: { phone: { number: '' }}} field

- Phone number: Checkout.com only accepts digits for phone numbers
- COF feature: the param was being sent on the wrong place
@filipebarcos filipebarcos force-pushed the fixes-checkout-v2-integration branch from 71e0065 to 61436d7 Compare June 19, 2019 18:56
@filipebarcos filipebarcos force-pushed the fixes-checkout-v2-integration branch from 61436d7 to b5f313f Compare June 20, 2019 20:05
@filipebarcos filipebarcos requested a review from elfassy June 20, 2019 20:07
post[:source][:billing_address] = {}
post[:source][:billing_address][:address_line1] = address[:address1] unless address[:address1].blank?
post[:source][:billing_address][:address_line2] = address[:address2] unless address[:address2].blank?
post[:source][:billing_address][:city] = address[:city] unless address[:city].blank?
post[:source][:billing_address][:state] = address[:state] unless address[:state].blank?
post[:source][:billing_address][:country] = address[:country] unless address[:country].blank?
post[:source][:billing_address][:zip] = address[:zip] unless address[:zip].blank?
post[:source][:phone] = { number: address[:phone] } unless address[:phone].blank?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@filipebarcos filipebarcos merged commit 9c7663b into master Jun 22, 2019
@filipebarcos filipebarcos deleted the fixes-checkout-v2-integration branch June 22, 2019 18:50
whitby3001 pushed a commit to whitby3001/active_merchant that referenced this pull request Sep 3, 2019
* Fixing phone number unwanted chars and COF feature

- Phone number: Checkout.com only accepts digits for phone numbers
- COF feature: the param was being sent on the wrong place

* Stop sending phone number to Checkout V2 integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants