{"_id":"559a7a143a2d840d009afcc6","__v":1,"user":{"_id":"5476eb1df3736008009e9ced","username":"","name":"Joshua Lotz"},"initVersion":{"_id":"54930e7c777ff221004a7e70","version":"1.0"},"project":"54930e7c777ff221004a7e6d","tags":[],"createdAt":"2015-07-06T12:52:36.673Z","changelog":[{"_id":"559a7d493a2d840d009afccc","update":"POST /orders/{orderId}/authorizePayment","type":"added"},{"_id":"559a7d493a2d840d009afccb","update":"","type":"added"}],"body":"Our API is now updated to support direct integrations for Paynova's new *Invoice as a Service*. `Authorize Payment` should be used for direct integrations where the user is not redirected to Paynova's hosted payment page, i.e. when the user completes the payment in the merchant's own checkout.\n\nFor direct integrations, `Authorize Payment` replaces `Initialize Payment` (which is only user for flows where the user is redirected to Paynova's hosted payment page to complete their payment).\n\nExamples of payments which use a direct integration are: Invoice Payments, Recurring Payments (subscriptions) and Profile Payments (pre-saved card details).\n\n`Authorize Payment` is a synchronous call and is super easy to use. Just specify the Paynova `Order ID` in the POST url and send the `Total Amount` and `Authorization Type` in the body. Some authorization types require additional parameters. Invoice payments, for example, require you to specify the exaact invoicing product which should be used.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"POST /orders/{orderId}/authorizePayment\\n\\n{\\n  \\\"AuthorizationType\\\": \\\"InvoicePayment\\\",\\n  \\\"TotalAmount\\\": 125.00,\\n  \\\"PaymentMethodId\\\": 311,\\n  \\\"PaymentMethodProductId\\\": \\\"DirectInvoice\\\",\\n  \\\"PaymentChannelId\\\": 1\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nThe payment is then finalized as usual using `Finalize Authorization`.","slug":"rfartqaewfr","title":"New endpoint: Authorize Payment"}

New endpoint: Authorize Payment


Our API is now updated to support direct integrations for Paynova's new *Invoice as a Service*. `Authorize Payment` should be used for direct integrations where the user is not redirected to Paynova's hosted payment page, i.e. when the user completes the payment in the merchant's own checkout. For direct integrations, `Authorize Payment` replaces `Initialize Payment` (which is only user for flows where the user is redirected to Paynova's hosted payment page to complete their payment). Examples of payments which use a direct integration are: Invoice Payments, Recurring Payments (subscriptions) and Profile Payments (pre-saved card details). `Authorize Payment` is a synchronous call and is super easy to use. Just specify the Paynova `Order ID` in the POST url and send the `Total Amount` and `Authorization Type` in the body. Some authorization types require additional parameters. Invoice payments, for example, require you to specify the exaact invoicing product which should be used. [block:code] { "codes": [ { "code": "POST /orders/{orderId}/authorizePayment\n\n{\n \"AuthorizationType\": \"InvoicePayment\",\n \"TotalAmount\": 125.00,\n \"PaymentMethodId\": 311,\n \"PaymentMethodProductId\": \"DirectInvoice\",\n \"PaymentChannelId\": 1\n}", "language": "json" } ] } [/block] The payment is then finalized as usual using `Finalize Authorization`.
added
POST /orders/{orderId}/authorizePayment