141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
# File 'lib/active_merchant/billing/gateways/credorax.rb', line 141
def purchase(amount, payment_method, options = {})
post = {}
add_invoice(post, amount, options)
add_payment_method(post, payment_method, options)
add_customer_data(post, options)
add_email(post, options)
add_3d_secure(post, options)
add_3ds_2_optional_fields(post, options)
add_echo(post, options)
add_submerchant_id(post, options)
add_stored_credential(post, options)
add_processor(post, options)
add_crypto_currency_type(post, options)
if options[:aft]
add_recipient(post, options)
add_sender(post, options)
end
commit(:purchase, post)
end
|