post https://example.com/orders//authorizePayment
The Authorize Payment service is used to process transactions via our API instead of via a hosted payment pages.
Valid payment types
Authorize Payment must be used for the following payment types:
- Recurring payments
- Profile payments for MOTO, Merchant Initiated Transactions (No CVC or 3DS) or Direct invoice
Authorize Payment can be used for the following instead of a hosted payment page:
- Credit Products (Invoice and installments)
- Swish
HTTP Request
POST /orders/{orderId}/authorizePayment
Request Parameters
Property | Type | Description |
---|---|---|
authorizationType required | string | Examples: "InvoicePayment" , "ProfilePayment" , "RecurringPayment" , "MobilePayment" |
totalAmount required | decimal | The total amount that should be processed for this payment. Constraints:
Example: 125.00 |
authenticationSessionId required | guid | The authenticationSessionId is retrieved from a successful authenticationSessionId call. It is a safety meassure to reassure that the consumer has identified properly. |
paymentMethodId conditional | int | For credit products (invoice and installments) set this to 311. For Swish payments: 126 Conditions: > Required for credit products (invoice and installments) and mobile payments. For recurring and profile payments, do not send in this parameter. Example: 311 , 126 , 312 |
transactionId conditional | string(18) | The transaction ID of the initial authorization transaction. Conditions: > Only required for recurring payments. Example: "201412161427444300" |
paymentChannelId conditional | int | The id of the payment channel. See paymentChannelId page for possible values. Conditions: > For recurring payments, this parameter is optional. Example: 1 |
routingIndicator conditional | string | The name or id of the routing table to use when processing payments. Conditions: > This field is used for advanced configurations and should only be provided if asked to do so by Paynova. Providing an invalid value in this field may result in payment failures. Example: "4658" |
paymentMethodProductId conditional | string | The payment method product ID for the specific payment type. Conditions: > Required for credit products (invoice/installment) orders. Example: "DirectInvoice", "InstallmentsThreeMonths", "InstallmentsSixMonths", etc. To see the available paymentMethotProductiId, see the [getPaymentOptions] page (http://api.developers.paynova.com/docs/get-payment-options) |
profilePaymentOptions conditional | ProfilePaymentOptions | Conditions: > Required for profile payments. Example: { "ProfileId": "12345", "ProfileCard": "7FAFC9F1-A1EC-4303-8555-3DF3D910925E" } |
urlCallback conditional | string | The callback URL for when the payment is completed or cancelled. Conditions: > Required for mobile payments. Example: "https://www.example.com/callback" |
mobileTelephone conditional | string | The mobile telephone number of the payer. Constraints:
Conditions: > Required for mobile payments. Example: "+46731234567" |
Response Parameters
Property | Type | Description |
---|---|---|
status optional | status | API operation status. Example: { "isSuccess": true, "errorNumber": 0, "statusKey": "SUCCESS", "statusMessage": "The operation was successful.", "errors": null, "exceptionDetails": null } |
orderId conditional | guid | Paynova's unique identifier associated with this transaction. Conditions: > This parameter is not returned in error situations. Example: "123456" |
transactionId conditional | string (18) | Paynova's unique identifier associated with this transaction. This identifier must be used in subsequent requests to Finalize Authorization and Annul Authorization. Conditions: > This parameter is not returned in error situations. Example: "201602090957016672" |
acquirerId conditional | int | ID of the settling part. Conditions: > This parameter is not returned in error situations. Example: 1045 |
acquirerReferenceId conditional | string | Reference ID from the settling part. Conditions: > This parameter is not returned in error situations. Example: "167685" |
riskAssessment conditional | string | Returns the configured mode of the risk assessment and the result. See the RiskAssessment page for possible scenarios. Example: { "mode": "Active", "result":"Approved" } |