I have created a payment provider for Authorize.NET. I have found out that we need to authorize the payment at order creation time and charge upon fulfillment. I am trying to find a way to write a dialog so I can charge the payment from the invoice, new payment screen. I noted that braintree has one, but it references a dialog controller I cannot find. Can someone assist me?
There is already an Authorize.net payment provider which allows Authorize then capture of payments. See the following repository which might save you the effort:
Simon have you tried to use that plugin with the latest version of Umbraco/Merchello? When I started this project I tried that and it broke everything when I installed that plugin and I had to revert back to a backup?
I have been a slightly modified version of it since 1.14.1 and have it running still on a site using v2.20. Last week I did a trial upgrade to 2.5.0 and didn't extensively test it yet but there were no obvious problems.
The modification I made was to support multiple accounts/currencies.
In what way did it break things?
I'm not using off-site payment pages but still the source code for the project should help you to complete your outstanding issue?
Thinking back I believe it was something to do with the payment form or something along those lines. It has bee a while since I've messed with it. Currently I'm almost done with the payment processor I wrote with the latest API and the hosted payment form. I'm reviewing the code of the plugin, I'm just not grasping the dialog part, I'll have to read up on Angular I'm assuming? I know the code I want to call I just need a button to do it :)
The capture button is a part of Merchello Core I think.
With regards to showing your own custom dialog I believe all you need for that should be in the Umbraco Angular libraries. I'm no Angular expert but I think what you're looking for is the dialogService.
$scope.openEditDialog = function () {
// open a custom dialog
dialogService.open({
// set the location of the view
template: "/App_Plugins/ContactEditor/dialog.html",
// pass in data used in dialog
dialogData: $scope.model.value.details,
// function called when dialog is closed
callback: function (value) {
if (value != null && value != '') {
$scope.model.value.details.name = value.name;
$scope.model.value.details.email = value.email;
$scope.model.value.details.phonenumber = value.phonenumber;
}
}
});
};
I'll be sifting through these this afternoon, this may be what I'm looking for. I store the transaction ID in the invoice so I just need it to grab that and call the Authorize.NET api and capture payment based on the current total (should adjustments be made).
Custom Payment Provider Dialog
Hello everyone,
I have created a payment provider for Authorize.NET. I have found out that we need to authorize the payment at order creation time and charge upon fulfillment. I am trying to find a way to write a dialog so I can charge the payment from the invoice, new payment screen. I noted that braintree has one, but it references a dialog controller I cannot find. Can someone assist me?
Thank you!
There is already an Authorize.net payment provider which allows Authorize then capture of payments. See the following repository which might save you the effort:
https://github.com/Merchello/Merchello.Plugin.Payment.AuthorizeNet
Simon
Simon have you tried to use that plugin with the latest version of Umbraco/Merchello? When I started this project I tried that and it broke everything when I installed that plugin and I had to revert back to a backup?
Edit: Also of note is the fact that I'm using a payment page generated by authorize net to keep payment information off my server as described here: https://developer.authorize.net/api/reference/features/accept_hosted.html
I have been a slightly modified version of it since 1.14.1 and have it running still on a site using v2.20. Last week I did a trial upgrade to 2.5.0 and didn't extensively test it yet but there were no obvious problems.
The modification I made was to support multiple accounts/currencies.
In what way did it break things?
I'm not using off-site payment pages but still the source code for the project should help you to complete your outstanding issue?
Thanks, Simon
Thinking back I believe it was something to do with the payment form or something along those lines. It has bee a while since I've messed with it. Currently I'm almost done with the payment processor I wrote with the latest API and the hosted payment form. I'm reviewing the code of the plugin, I'm just not grasping the dialog part, I'll have to read up on Angular I'm assuming? I know the code I want to call I just need a button to do it :)
Thanks, Michael
The capture button is a part of Merchello Core I think.
With regards to showing your own custom dialog I believe all you need for that should be in the Umbraco Angular libraries. I'm no Angular expert but I think what you're looking for is the dialogService.
Example from 24 Days in Umbraco: Using Angular in the back office:
I'll be sifting through these this afternoon, this may be what I'm looking for. I store the transaction ID in the invoice so I just need it to grab that and call the Authorize.NET api and capture payment based on the current total (should adjustments be made).
Thank you,
Michael
is working on a reply...