Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Netword token support for Auth, Purchase, and Verify
Browse files Browse the repository at this point in the history
  • Loading branch information
vpuzzella committed Mar 12, 2024
1 parent 1101281 commit 7898d6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/spreedly/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ def auth_purchase_body(amount, payment_method_token, options)
add_to_doc(doc, options, :retain_on_success)
add_to_doc(doc, options, :stored_credential_initiator)
add_to_doc(doc, options, :stored_credential_reason_type)
add_to_doc(doc, options, :provision_network_token)
add_to_doc(doc, options, :attempt_network_token)
add_extra_options_for_basic_ops(doc, options)
end
end
Expand All @@ -196,6 +198,8 @@ def verify_body(payment_method_token, options)
add_to_doc(doc, options, :retain_on_success)
add_to_doc(doc, options, :stored_credential_initiator)
add_to_doc(doc, options, :stored_credential_reason_type)
add_to_doc(doc, options, :provision_network_token)
add_to_doc(doc, options, :attempt_network_token)
add_extra_options_for_basic_ops(doc, options)
end
end
Expand Down Expand Up @@ -275,7 +279,7 @@ def add_credentials_to_doc(doc, credentials)

def add_credit_card_body(options)
build_xml_request('payment_method') do |doc|
add_to_doc(doc, options, :data, :retained, :email)
add_to_doc(doc, options, :data, :retained, :email, :provision_network_token)
doc.credit_card do
add_to_doc(doc, options, :number, :verification_value, :month, :full_name, :first_name, :last_name,
:year, :address1, :address2, :city, :state, :zip, :country, :phone_number,
Expand Down

0 comments on commit 7898d6c

Please sign in to comment.