Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Fix shipping contact name for ApplePay
Browse files Browse the repository at this point in the history
The firstname attribute was assigned to `familyName` and lastname
to `givenName`.
  • Loading branch information
cedum committed Nov 15, 2019
1 parent e85a085 commit 30541d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ The following is a relatively bare-bones implementation to enable Apple Pay on t
amount: "<%= current_order.total %>",
shippingContact: {
emailAddress: '<%= current_order.email %>',
familyName: '<%= address.firstname %>',
givenName: '<%= address.lastname %>',
givenName: '<%= address.firstname %>',
familyName: '<%= address.lastname %>',
phoneNumber: '<%= address.phone %>',
addressLines: ['<%= address.address1 %>','<%= address.address2 %>'],
locality: '<%= address.city %>',
Expand Down
4 changes: 2 additions & 2 deletions app/views/spree/shared/_apple_pay_button.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
amount: "<%= current_order.total %>",
shippingContact: {
emailAddress: '<%= current_order.email %>',
familyName: '<%= address.firstname %>',
givenName: '<%= address.lastname %>',
givenName: '<%= address.firstname %>',
familyName: '<%= address.lastname %>',
phoneNumber: '<%= address.phone %>',
addressLines: ['<%= address.address1 %>','<%= address.address2 %>'],
locality: '<%= address.city %>',
Expand Down

0 comments on commit 30541d2

Please sign in to comment.