Module: AmazonFlexPay::Pipelines
- Included in:
- AmazonFlexPay
- Defined in:
- lib/amazon_flex_pay/pipelines/base.rb,
lib/amazon_flex_pay/pipelines.rb,
lib/amazon_flex_pay/pipelines/multi_use.rb,
lib/amazon_flex_pay/pipelines/recipient.rb,
lib/amazon_flex_pay/pipelines/edit_token.rb,
lib/amazon_flex_pay/pipelines/single_use.rb
Overview
:nodoc:
Defined Under Namespace
Classes: Base, EditToken, MultiUse, Recipient, SingleUse
Instance Method Summary collapse
-
#edit_token_pipeline(caller_reference, return_url, options = {}) ⇒ Object
Creates a pipeline that may be used to change the payment method of a token.
-
#multi_use_pipeline(caller_reference, return_url, options = {}) ⇒ Object
Creates a pipeline that will authorize you to send money from the user multiple times.
-
#recipient_pipeline(caller_reference, return_url, options = {}) ⇒ Object
Creates a pipeline that will authorize you to send money to the user.
-
#single_use_pipeline(caller_reference, return_url, options = {}) ⇒ Object
Creates a pipeline that will authorize you to send money from the user one time.
Instance Method Details
#edit_token_pipeline(caller_reference, return_url, options = {}) ⇒ Object
Creates a pipeline that may be used to change the payment method of a token.
Note that this does not allow changing a token’s limits or recipients or really anything but the method.
See docs.amazonwebservices.com/AmazonFPS/latest/FPSAdvancedGuide/EditTokenPipeline.html
11 12 13 |
# File 'lib/amazon_flex_pay/pipelines.rb', line 11 def edit_token_pipeline(caller_reference, return_url, = {}) cbui EditToken.new(.merge(:caller_reference => caller_reference, :return_url => return_url)) end |
#multi_use_pipeline(caller_reference, return_url, options = {}) ⇒ Object
Creates a pipeline that will authorize you to send money from the user multiple times.
This is also necessary to create sender tokens that are valid for a long period of time, even if you only plan to collect from the token once.
See docs.amazonwebservices.com/AmazonFPS/latest/FPSAdvancedGuide/MultiUsePipeline.html
21 22 23 |
# File 'lib/amazon_flex_pay/pipelines.rb', line 21 def multi_use_pipeline(caller_reference, return_url, = {}) cbui MultiUse.new(.merge(:caller_reference => caller_reference, :return_url => return_url)) end |
#recipient_pipeline(caller_reference, return_url, options = {}) ⇒ Object
Creates a pipeline that will authorize you to send money to the user.
See docs.amazonwebservices.com/AmazonFPS/latest/FPSAdvancedGuide/CBUIapiMerchant.html
28 29 30 |
# File 'lib/amazon_flex_pay/pipelines.rb', line 28 def recipient_pipeline(caller_reference, return_url, = {}) cbui Recipient.new(.merge(:caller_reference => caller_reference, :return_url => return_url)) end |
#single_use_pipeline(caller_reference, return_url, options = {}) ⇒ Object
Creates a pipeline that will authorize you to send money from the user one time.
Note that if this payment fails, you must create another pipeline to get another token.
See docs.amazonwebservices.com/AmazonFPS/2010-08-28/FPSBasicGuide/SingleUsePipeline.html
37 38 39 |
# File 'lib/amazon_flex_pay/pipelines.rb', line 37 def single_use_pipeline(caller_reference, return_url, = {}) cbui SingleUse.new(.merge(:caller_reference => caller_reference, :return_url => return_url)) end |