Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Flavio Spezi 128 posts 314 karma points
    Feb 16, 2015 @ 12:09
    Flavio Spezi
    0

    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 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.

    Then, what happens? Is it a bug in Merchello?

  • Martin 81 posts 246 karma points
    Feb 16, 2015 @ 13:36
    Martin
    0

    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.

  • Flavio Spezi 128 posts 314 karma points
    Feb 16, 2015 @ 14:47
    Flavio Spezi
    0

    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?

  • Eidos 44 posts 66 karma points
    Mar 02, 2015 @ 17:28
    Eidos
    0

    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! 

     

  • Flavio Spezi 128 posts 314 karma points
    Mar 02, 2015 @ 17:59
    Flavio Spezi
    0

    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

  • Eidos 44 posts 66 karma points
    Mar 05, 2015 @ 08:51
    Eidos
    0

    Thanks Flavio, 

    I will verify it as soon as possible.

    After that I will send you a feedback.

  • Eidos 44 posts 66 karma points
    Mar 12, 2015 @ 17:08
    Eidos
    0

    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 ;) 

     

Please Sign in or register to post replies

Write your reply to:

Draft