Class: Adyen::API::RecurringService
- Inherits:
-
SimpleSOAPClient
- Object
- SimpleSOAPClient
- Adyen::API::RecurringService
- Extended by:
- TestHelpers
- Defined in:
- lib/adyen/api/recurring_service.rb,
lib/adyen/api/test_helpers.rb,
lib/adyen/api/templates/recurring_service.rb
Overview
This is the class that maps actions to Adyen’s Recurring SOAP service.
It’s encouraged to use the shortcut methods on the Adyen::API module, which abstracts away the difference between this service and the PaymentService. Henceforth, for extensive documentation you should look at the Adyen::API documentation.
The most important difference is that you instantiate a RecurringService with the parameters that are needed for the call that you will eventually make.
Defined Under Namespace
Modules: TestHelpers Classes: DisableResponse, ListResponse, StoreTokenResponse
Constant Summary collapse
- ENDPOINT_URI =
The Adyen Recurring SOAP service endpoint uri.
'https://pal-%s.adyen.com/pal/servlet/soap/Recurring'- LIST_LAYOUT =
" <recurring:listRecurringDetails xmlns:payment=\"http://payment.services.adyen.com\" xmlns:recurring=\"http://recurring.services.adyen.com\">\n <recurring:request>\n <recurring:recurring>\n <payment:contract>RECURRING</payment:contract>\n </recurring:recurring>\n <recurring:merchantAccount>%s</recurring:merchantAccount>\n <recurring:shopperReference>%s</recurring:shopperReference>\n </recurring:request>\n </recurring:listRecurringDetails>\n"- DISABLE_LAYOUT =
" <recurring:disable xmlns:recurring=\"http://recurring.services.adyen.com\">\n <recurring:request>\n <recurring:merchantAccount>%s</recurring:merchantAccount>\n <recurring:shopperReference>%s</recurring:shopperReference>\n %s\n </recurring:request>\n </recurring:disable>\n"- RECURRING_DETAIL_PARTIAL =
" <recurring:recurringDetailReference>%s</recurring:recurringDetailReference>\n"- STORE_TOKEN_LAYOUT =
" <recurring:storeToken xmlns:recurring=\"http://recurring.services.adyen.com\" xmlns:payment=\"http://payment.services.adyen.com\">\n <recurring:request>\n <recurring:recurring>\n <payment:contract>RECURRING</payment:contract>\n </recurring:recurring>\n <recurring:merchantAccount>%s</recurring:merchantAccount>\n <recurring:shopperReference>%s</recurring:shopperReference>\n <recurring:shopperEmail>%s</recurring:shopperEmail>\n %s\n </recurring:request>\n </recurring:storeToken>\n"- CARD_PARTIAL =
" <recurring:card>\n <payment:holderName>%s</payment:holderName>\n <payment:number>%s</payment:number>\n <payment:cvc>%s</payment:cvc>\n <payment:expiryYear>%s</payment:expiryYear>\n <payment:expiryMonth>%02d</payment:expiryMonth>\n </recurring:card>\n"- ELV_PARTIAL =
Electronic bank debit in Germany. Semi real-time payment method.
" <recurring:elv>\n <payment:bankLocation>%s</payment:bankLocation>\n <payment:bankName>%s</payment:bankName>\n <payment:bankLocationId>%s</payment:bankLocationId>\n <payment:accountHolderName>%s</payment:accountHolderName>\n <payment:bankAccountNumber>%02d</payment:bankAccountNumber>\n </recurring:elv>\n"
Constants included from TestHelpers
Constants inherited from SimpleSOAPClient
SimpleSOAPClient::CACERT, SimpleSOAPClient::ENVELOPE
Instance Attribute Summary
Attributes inherited from SimpleSOAPClient
Instance Method Summary collapse
Methods included from TestHelpers
Methods inherited from SimpleSOAPClient
#call_webservice_action, endpoint, #initialize, #validate_parameter_value!, #validate_parameters!
Constructor Details
This class inherits a constructor from Adyen::API::SimpleSOAPClient
Instance Method Details
#disable ⇒ Object
30 31 32 |
# File 'lib/adyen/api/recurring_service.rb', line 30 def disable call_webservice_action('disable', disable_request_body, DisableResponse) end |
#list ⇒ Object
25 26 27 |
# File 'lib/adyen/api/recurring_service.rb', line 25 def list call_webservice_action('listRecurringDetails', list_request_body, ListResponse) end |
#store_token ⇒ Object
35 36 37 |
# File 'lib/adyen/api/recurring_service.rb', line 35 def store_token call_webservice_action('storeToken', store_token_request_body, StoreTokenResponse) end |