I try to use PayPal payment plugin in Merchello 1.7.0.
I look that the settings UI of plugin contains an issue. The issue is throw because $scope.dialogData.provider.extendedData IS NOT an array but it contains items property; and items property is an array.
Then I change code to solve issue.
Now, after click on "save" button I look that $scope.dialogData.provider.extendedData does not contains items property anymore, but now it is an array.
This transform is done by saveGatewayProvider in merchello.resources.js.
"If you are using any custom providers for Notification, Payments, Shipping or Taxation you will need to make sure any back office dialogs have been updated to work with the new JavaScript patterns. The providers themselves should work fine - it's the editors and configuration dialogs that may be affected."
It would appear that the PayPal provider has not been upgraded to work with 1.7 yet. I am facing the same issue myself with the Stripe provider, hopefully fixes will be out soon.
Yes, I know this article.
this is the reason that I am to review the plugin.
I solved in reading configuration, when UI settings is shown for first time. But, if I click to save button, then I try to reopen the UI settings, the $scope.dialogData.provider.extendedData object is not more in the new format: now it is in old format.
To try this you must not to do a page refresh.
I think that it is a bug of Merchello: it can't give me an object in 2 formats.
I can't test it now because I have other issues in the project.
I remember that I was try to solve the issue, and I think that I was solved.
If you wnat to try it download this, then replace the file in "App_Plugin/Merchello.PayPal" folder.
Payment GatewayProvider plugin: extendedData issue
I try to use PayPal payment plugin in Merchello 1.7.0.
I look that the settings UI of plugin contains an issue. The issue is throw because
$scope.dialogData.provider.extendedData
IS NOT an array but it containsitems
property; anditems
property is an array.Then I change code to solve issue.
Now, after click on "save" button I look that
$scope.dialogData.provider.extendedData
does not containsitems
property anymore, but now it is an array.This transform is done by
saveGatewayProvider
inmerchello.resources.js
.Then, what happens? Is it a bug in Merchello?
Hi Flavio,
take a look at Rusty's post regarding the 1.7.0 release: https://our.umbraco.org/projects/collaboration/merchello/merchello/61239-Merchello-170-Release
"If you are using any custom providers for Notification, Payments, Shipping or Taxation you will need to make sure any back office dialogs have been updated to work with the new JavaScript patterns. The providers themselves should work fine - it's the editors and configuration dialogs that may be affected."
It would appear that the PayPal provider has not been upgraded to work with 1.7 yet. I am facing the same issue myself with the Stripe provider, hopefully fixes will be out soon.
Thanks @Martin.
Yes, I know this article.
this is the reason that I am to review the plugin.
I solved in reading configuration, when UI settings is shown for first time. But, if I click to
save
button, then I try to reopen the UI settings, the$scope.dialogData.provider.extendedData
object is not more in the new format: now it is in old format.To try this you must not to do a page refresh.
I think that it is a bug of Merchello: it can't give me an object in 2 formats.
Do you agree with me?
Hi Flavio,
did you solve the problem?
Now, paypal plugin with umbraco 1.7 seems doesn't work well.
How can I update the angularJS code?
Thanks!
Hi @Eidos,
I can't test it now because I have other issues in the project.
I remember that I was try to solve the issue, and I think that I was solved.
If you wnat to try it download this, then replace the file in "App_Plugin/Merchello.PayPal" folder.
merchello.paypal.controller.js
Thanks Flavio,
I will verify it as soon as possible.
After that I will send you a feedback.
Thanks to your code, Merchello can save the payment provider options.
Only a clarification: in PayPalPaymentGatewayProvider I changed the plugin file name from editor.html in providerSettingsDialog.html.
Now I haven't any paypal sandbox account.
As soon as possible I will test the plugin with an account ;)
is working on a reply...