Class: Adyen::API::PaymentService
- Inherits:
-
SimpleSOAPClient
- Object
- SimpleSOAPClient
- Adyen::API::PaymentService
- Extended by:
- TestHelpers
- Defined in:
- lib/adyen/api/payment_service.rb,
lib/adyen/api/test_helpers.rb,
lib/adyen/api/templates/payment_service.rb
Overview
This is the class that maps actions to Adyen???s Payment 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 RecurringService. Henceforth, for extensive documentation you should look at the Adyen::API documentation.
The most important difference is that you instantiate a PaymentService with the parameters that are needed for the call that you will eventually make.
Defined Under Namespace
Modules: TestHelpers
Constant Summary
- ENDPOINT_URI =
The Adyen Payment SOAP service endpoint uri.
'https://pal-%s.adyen.com/pal/servlet/soap/Payment'- CAPTURE_LAYOUT =
modification_request_with_amount(:capture)
- REFUND_LAYOUT =
modification_request_with_amount(:refund)
- CANCEL_LAYOUT =
modification_request(:cancel)
- CANCEL_OR_REFUND_LAYOUT =
modification_request(:cancelOrRefund)
- LAYOUT =
<<EOS <payment:authorise xmlns:payment="http://payment.services.adyen.com" xmlns:recurring="http://recurring.services.adyen.com" xmlns:common="http://common.services.adyen.com"> <payment:paymentRequest> <payment:merchantAccount>%s</payment:merchantAccount> <payment:reference>%s</payment:reference> %s </payment:paymentRequest> </payment:authorise> EOS
- AMOUNT_PARTIAL =
<<EOS <payment:amount> <common:currency>%s</common:currency> <common:value>%s</common:value> </payment:amount> EOS
- CARD_PARTIAL =
<<EOS <payment:card> <payment:holderName>%s</payment:holderName> <payment:number>%s</payment:number> <payment:cvc>%s</payment:cvc> <payment:expiryYear>%s</payment:expiryYear> <payment:expiryMonth>%02d</payment:expiryMonth> </payment:card> EOS
- ENABLE_RECURRING_CONTRACTS_PARTIAL =
<<EOS <payment:recurring> <payment:contract>RECURRING,ONECLICK</payment:contract> </payment:recurring> EOS
- RECURRING_PAYMENT_BODY_PARTIAL =
<<EOS <payment:recurring> <payment:contract>RECURRING</payment:contract> </payment:recurring> <payment:selectedRecurringDetailReference>%s</payment:selectedRecurringDetailReference> <payment:shopperInteraction>ContAuth</payment:shopperInteraction> EOS
- ONE_CLICK_PAYMENT_BODY_PARTIAL =
<<EOS <payment:recurring> <payment:contract>ONECLICK</payment:contract> </payment:recurring> <payment:selectedRecurringDetailReference>%s</payment:selectedRecurringDetailReference> <payment:card> <payment:cvc>%s</payment:cvc> </payment:card> EOS
- SHOPPER_PARTIALS =
{ :reference => ' <payment:shopperReference>%s</payment:shopperReference>', :email => ' <payment:shopperEmail>%s</payment:shopperEmail>', :ip => ' <payment:shopperIP>%s</payment:shopperIP>', :statement => ' <payment:shopperStatement>%s</payment:shopperStatement>', }
Constants included from TestHelpers
TestHelpers::AUTHORISATION_REFUSED_RESPONSE, TestHelpers::AUTHORISATION_REQUEST_INVALID_RESPONSE, TestHelpers::AUTHORISE_RESPONSE
Constants inherited from SimpleSOAPClient
SimpleSOAPClient::CACERT, SimpleSOAPClient::ENVELOPE
Instance Attribute Summary
Attributes inherited from SimpleSOAPClient
Instance Method Summary (collapse)
- - (Object) authorise_one_click_payment
- - (Object) authorise_payment
- - (Object) authorise_recurring_payment
- - (Object) cancel
- - (Object) cancel_or_refund
- - (Object) capture
- - (Object) refund
Methods included from TestHelpers
invalid_stub, refused_stub, stub_invalid!, stub_refused!, stub_success!, success_stub
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
- (Object) authorise_one_click_payment
54 55 56 |
# File 'lib/adyen/api/payment_service.rb', line 54 def make_payment_request(, AuthorisationResponse) end |
- (Object) authorise_payment
44 45 46 |
# File 'lib/adyen/api/payment_service.rb', line 44 def make_payment_request(, AuthorisationResponse) end |
- (Object) authorise_recurring_payment
49 50 51 |
# File 'lib/adyen/api/payment_service.rb', line 49 def make_payment_request(, AuthorisationResponse) end |
- (Object) cancel
69 70 71 |
# File 'lib/adyen/api/payment_service.rb', line 69 def cancel make_payment_request(cancel_request_body, CancelResponse) end |
- (Object) cancel_or_refund
74 75 76 |
# File 'lib/adyen/api/payment_service.rb', line 74 def cancel_or_refund make_payment_request(cancel_or_refund_request_body, CancelOrRefundResponse) end |
- (Object) capture
59 60 61 |
# File 'lib/adyen/api/payment_service.rb', line 59 def capture make_payment_request(capture_request_body, CaptureResponse) end |
- (Object) refund
64 65 66 |
# File 'lib/adyen/api/payment_service.rb', line 64 def refund make_payment_request(refund_request_body, RefundResponse) end |