Is there any newer MerchelloQuickPayProvider package ?
I found it hard to bring the 1.0.4 to a runnable state. I started with the gateway.controller.js, so I modified it into:
/**
* @ngdoc controller
* @name Merchello.Plugin.GatewayProviders.Payments.Dialogs.QuickPayGatewayProviderController
* @function
*
* @description
* The controller for the editing payment gateway settings
*/
angular.module('merchello.plugins.quickpay')
.controller('Merchello.Plugin.GatewayProviders.Payments.Dialogs.QuickPayGatewayProviderController',
[
'$scope',
function($scope) {
/**
* @ngdoc method
* @name init
* @function
*
* @description
* Method called on intial page load. Loads in data from server and sets up scope.
*/
$scope.init = function() {
//$scope.dialogData.provider.extendedData
// on initial load extendedData will be empty but we need to populate with key values
var settingsString = $scope.dialogData.provider.extendedData.items[0].value;
$scope.quickpaySettings = JSON.parse(settingsString);
// Watch with object equality to convert back to a string for the submit() call on the Save button
$scope.$watch(function() {
return $scope.quickpaySettings;
},
function(newValue, oldValue) {
$scope.dialogData.provider.extendedData.items[0].value = angular.toJson(newValue);
},
true);
};
$scope.init();
}
]);
but now i'm stuck on payment.quickpay.paymentmethod.controller.js. Is this going to be something similar to this from epay ?
Ok, I think I found out how to change the Merchello.QuickPay plugin files:
First, gateway.controller.js:
/**
* @ngdoc controller
* @name Merchello.Plugin.GatewayProviders.Payments.Dialogs.QuickPayGatewayProviderController
* @function
*
* @description
* The controller for the editing payment gateway settings
**/
angular.module('merchello.plugins.quickpay')
.controller('Merchello.Plugin.GatewayProviders.Payments.Dialogs.QuickPayGatewayProviderController',
[
'$scope',
function($scope) {
/**
* @ngdoc method
* @name init
* @function
*
* @description
* Method called on intial page load. Loads in data from server and sets up scope.
*/
$scope.init = function() {
//$scope.dialogData.provider.extendedData
// on initial load extendedData will be empty but we need to populate with key values
var settingsString = $scope.dialogData.provider.extendedData.items[0].value;
$scope.quickpaySettings = JSON.parse(settingsString);
// Watch with object equality to convert back to a string for the submit() call on the Save button
$scope.$watch(function() {
return $scope.quickpaySettings;
},
function(newValue, oldValue) {
$scope.dialogData.provider.extendedData.items[0].value = angular.toJson(newValue);
},
true);
};
$scope.init();
}
]);
Now in Merchello 2.5.0/2.6.0 the QuickPay Payment Provider loads without errors in the Gateway Providers page and the API keys can be saved without errors.
This is just my results so far about the settings page of the plugin. I'm gonna study to see if the plugin actually works.
Again please, if anyone has knowledge of the updated QuickPay plugin that would run in Merchello 2.5.0, that would be much appreciated.
I'm trying to add the formQuickPay mentioned in the MerchelloQuickPayProvider page:
> Add the following form to your checkout flow. I may want to assign
> ID's to these fields, and insert the values with JavaScript and then
> submit the form with JavaScript as well. That is up to you, but you
> will need a form to POST the values to QuickPay.
>
> <form id="formQuickPay" method="POST"
> action="https://payment.quickpay.net"> <input type="hidden"
> name="version" value="v10"> <input type="hidden" name="merchant_id"
> value="1234"> <input type="hidden" name="agreement_id" value="1234">
> <input type="hidden" name="order_id" value="INSERT VALUE HERE">
> <input type="hidden" name="amount" value="INSERT VALUE HERE"> <input
> type="hidden" name="currency" value="INSERT VALUE HERE"> <input
> type="hidden" name="continueurl" value="INSERT VALUE HERE"> <input
> type="hidden" name="cancelurl" value="INSERT VALUE HERE"> <input
> type="hidden" name="callbackurl" value="INSERT VALUE HERE"> <input
> type="hidden" name="checksum" value="INSERT VALUE HERE"> <input
> type="hidden" name="language" value="en"> <input type="hidden"
> name="autocapture" value="0"> <input type="submit" value="Continue
> to QuickPay"> </form>
Where exactly do I have to add that please ? Do you have an example ?
I checked AuthorizeNet plugin code (brought the Nuget packages up-to-date), PayPal Express Checkout code, Stripe plugin code (brought the Nuget packages up-to-date), still cannot figure this out. The closest I got is the code:
that i see appearing in \App_Plugins\Merchello\views\PayPalExpressPayment\PaymentForm.cshtml file. Should I follow the same pattern ? How do I link it to its controller, please ?
QuickPay
Hi Rusty,
Is there any newer MerchelloQuickPayProvider package ?
I found it hard to bring the 1.0.4 to a runnable state. I started with the gateway.controller.js, so I modified it into:
/** * @ngdoc controller * @name Merchello.Plugin.GatewayProviders.Payments.Dialogs.QuickPayGatewayProviderController * @function * * @description * The controller for the editing payment gateway settings */ angular.module('merchello.plugins.quickpay') .controller('Merchello.Plugin.GatewayProviders.Payments.Dialogs.QuickPayGatewayProviderController', [ '$scope', function($scope) {
but now i'm stuck on payment.quickpay.paymentmethod.controller.js. Is this going to be something similar to this from epay ?
(function () { angular.module('merchello.plugins.epay', [ 'merchello.models', 'merchello.services', 'merchello.providers.models', 'merchello.providers.directives', 'merchello.providers.resources' ]);
}());
Again please, anyone with an updated QuickPay plugin here ?
Ok, I think I found out how to change the Merchello.QuickPay plugin files:
First, gateway.controller.js:
Then, payment.quickpay.paymentmethod.controller.js:
Then we need to add a new one, payment.quickpay.module.js:
And finally we need to modify the package.manifest:
Now in Merchello 2.5.0/2.6.0 the QuickPay Payment Provider loads without errors in the Gateway Providers page and the API keys can be saved without errors.
This is just my results so far about the settings page of the plugin. I'm gonna study to see if the plugin actually works.
Again please, if anyone has knowledge of the updated QuickPay plugin that would run in Merchello 2.5.0, that would be much appreciated.
Thanks for the update Claudiu - Do you have your plugin in a repo somewhere I can have a look?
Unfortunately no, not at the moment. I'll think of something later when/if i get to the bottom of this somehow :)
Again please, if anyone has knowledge of the updated QuickPay plugin that would run in Merchello 2.5.0, that would be much appreciated.
Hi Rusty,
I'm trying to add the formQuickPay mentioned in the MerchelloQuickPayProvider page:
Where exactly do I have to add that please ? Do you have an example ?
I checked AuthorizeNet plugin code (brought the Nuget packages up-to-date), PayPal Express Checkout code, Stripe plugin code (brought the Nuget packages up-to-date), still cannot figure this out. The closest I got is the code:
that i see appearing in \App_Plugins\Merchello\views\PayPalExpressPayment\PaymentForm.cshtml file. Should I follow the same pattern ? How do I link it to its controller, please ?
Hi Claudiu
I am at the same point where the Merchello and qickpay does not work.
Did you find any solutions on this.. René
Hi Guys
Did you find a way how to setup quickpay to Merchello?
Alex
is working on a reply...