Copied to clipboard

Flag this post as spam?

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


  • bleedow 6 posts 71 karma points
    Aug 07, 2015 @ 16:44
    bleedow
    0

    PayPal Express Payment Provider: Method not found exception

    Hi,

    I've just run into the following problem with PayPal Express Payment Provider. Whenever the user gets successfully redirected from PayPal I get the following exception from the PayPalApiController:

    Method not found: 'Void Merchello.Web.Workflow.IBasket.Empty()'
    System.MissingMethodException
    at Merchello.Plugin.Payments.PayPal.Controllers.PayPalApiController.SuccessPayment(Guid invoiceKey, Guid paymentKey, String token, String payerId) at lambda_method(Closure , Object , Object[] )
    

    I'm running the following setup:

    Umbraco 7.2.8
    Merchello 1.10.1
    Merchello.PayPal.Payment 1.0.4

    Is the version 1.0.4 not compatible with Merchello 1.10.1 or this is related to my local configuration?

    Any help or advise will be highly appreciated.

  • Tom Van Rompaey 38 posts 136 karma points
    Aug 07, 2015 @ 19:14
    Tom Van Rompaey
    0

    I've encountered the same error and there's a fix for this on github: https://github.com/Merchello/Merchello/tree/merchello-dev/Plugin/Payments/PayPal/src/Merchello.Plugin.Payments.PayPal

    Download the solution, build it and then add the new Merchello.Plugin.Payments.PayPal.dll to your project.

    Good luck!

  • Jason 92 posts 175 karma points
    Aug 08, 2015 @ 16:53
    Jason
    0

    Are you using one of the Bazaar builds?

  • Tom Van Rompaey 38 posts 136 karma points
    Aug 09, 2015 @ 19:09
    Tom Van Rompaey
    101

    I've uploaded the builded DLL: https://onedrive.live.com/redir?resid=EE89971785E4F142!4849&authkey=!ADF8o9zPY16RV-8&ithint=file%2cdll

    Download this and then overwrite the old Merchello.Plugin.Payments.PayPal.dll in the /bin/ folder.

    Maybe it should be better that Merchello.PayPal.Payment_1.0.5 launches with this fix applied :)

  • Jason 92 posts 175 karma points
    Aug 09, 2015 @ 20:52
    Jason
    0

    Thanks Tom. All working, right until the last part when continuing with the payment:

    'Error: - The field Shipping Address State is required'.

    (Bazaar build)

  • bleedow 6 posts 71 karma points
    Aug 13, 2015 @ 15:33
    bleedow
    0

    @Json Yes, I'm using the Bazaar build and indeed I get the exact same error now.

    Error: - The field Shipping Address State is required
    

    I suspect this line is throwing it (line 128 of PayPalApiController):

    return ShowError(captureResult.Payment.Exception.Message);
    

    Which means that the payment was not captured. When I log into the backend that is actually the case.

    Question is how and where should I set the 'Shipping Address State'?

  • Jason 92 posts 175 karma points
    Aug 13, 2015 @ 15:47
    Jason
    0

    @bleedow

    The error is thrown due to the default shipping gateway of the bazaar project. Go into Umbraco > Merchello > Gateways and create a new Shipping service, say in the UK.

    The default service is USA, where PayPal requires that field.

    I now have a working Paypal site. I'll be putting a working sample on my github repo shortly

  • bleedow 6 posts 71 karma points
    Aug 13, 2015 @ 15:55
    bleedow
    0

    I'm unable to capture the payment manually as well. This is what I see in the payment history:

    13-08-2015  PayPal: initialized
    13-08-2015  PayPal: request capture authorization error: - The field Shipping Address State is required
    13-08-2015  PayPal: request capture error: - AuthorizationID : Required parameter missing   $0.00
    13-08-2015  PayPal: request capture error: - AuthorizationID : Required parameter missing   $0.00
    
  • Jason 92 posts 175 karma points
    Aug 13, 2015 @ 16:02
    Jason
    0

    Refer to my previous post - this should sort your problem

  • bleedow 6 posts 71 karma points
    Aug 13, 2015 @ 16:33
    bleedow
    0

    OK, I got it working - thank you @Json for your support!

  • Jason 92 posts 175 karma points
    Aug 13, 2015 @ 16:58
    Jason
    0

    No problem, enjoy!

  • Matt 12 posts 98 karma points
    Sep 24, 2015 @ 06:02
    Matt
    0

    I get the same error after confirming purchase in paypal, if someone could help me with this and point me in the right direction would be great would be great. the sales are also un-paid in merchello as well

    Umbraco 7.2.3, Merchello Version 1.12.0, Merchello.PayPal.Payment_1.0.4

    /umbraco/MerchelloPayPal/PayPalApi/SuccessPayment?InvoiceKey=877103d7-e6c1-4b19-917b-dab3afc46c24&PaymentKey=4d530e2f-dca0-41a1-8900-6520be086e9b&token=EC-0HD12095F1374812J&PayerID=L7MV92TE4T9V4

  • Jason 92 posts 175 karma points
    Oct 16, 2015 @ 15:37
    Jason
    0

    Did you get the latest copy of the Paypal source, build and copy the dll over? Or just download the one above and use that instead

  • Simon 692 posts 1068 karma points
    Oct 16, 2015 @ 15:53
    Simon
    0

    Hi,

    Does this link https://github.com/Merchello/Merchello/tree/merchello-dev/Plugin/Payments/PayPal/src/Merchello.Plugin.Payments.PayPal

    fix all these issues since I have just installed the latest version of the package.

    Thank you.

    Kind Regards

  • Jason 92 posts 175 karma points
    Oct 16, 2015 @ 16:01
    Jason
    0

    I can't confirm in it's current form, but this file I can: http://d.pr/f/JyyL

  • Simon 692 posts 1068 karma points
    Oct 16, 2015 @ 16:16
    Simon
    0

    Because currently, that link is stating page not found :/

  • Tom Van Rompaey 38 posts 136 karma points
    Oct 16, 2015 @ 19:05
    Tom Van Rompaey
    0

    It seems that Droplr deleted the file... Oh well, I uploaded it to my Onedrive: https://onedrive.live.com/redir?resid=EE89971785E4F142!4849&authkey=!ADF8o9zPY16RV-8&ithint=file%2cdll

    Good luck!

  • Simon 692 posts 1068 karma points
    Oct 16, 2015 @ 20:59
    Simon
    0

    Hi Tom,

    So just to be clear:

    I have already installed this package: https://our.umbraco.org/projects/collaboration/merchello-paypal-express-payment-provider/

    the latest version (1.0.4).

    SO I just need to replace the .dll file that you have shared on One Drive with the one currently existing in my bin folder?

    thank you.

  • Tom Van Rompaey 38 posts 136 karma points
    Oct 17, 2015 @ 11:22
    Tom Van Rompaey
    0

    Yes, that's correct!

    The .dll file that I've shared on OneDrive is actually 1.0.4 with this fix applied: https://github.com/Merchello/Merchello/commit/a0aa2bd42af614a94a50b146a3b116fc398f5d47

    So you can actually see it as version 1.0.4.1.

    I've pinged the developer of the package on Twitter to release 1.0.5 to make all our lives better :)

  • Simon 692 posts 1068 karma points
    Oct 17, 2015 @ 12:53
    Simon
    0

    Hi Tom,

    May I ask you whether once a payment is completed via paypal, the order in the merchello CMS will be marked as Paid automatically?

    Thank you.

  • Simon 692 posts 1068 karma points
    Oct 17, 2015 @ 13:08
    Simon
    0

    Hi Tom,

    I am asking this question, the previous one because I want to add some custom logic once an order is completed. I want to get the purchased products and do some logic.

    Where can I do this please, in Merchello Bazaar?

    Thank you.

    Kind Regards

  • Simon 692 posts 1068 karma points
    Oct 19, 2015 @ 08:24
    Simon
    0

    Hi guys,

    I am trying to continue a paypal transaction through the plugin, using sandbox test accounts as the business and the buyer, but once I confirm payment, the following error is being thrown:

    Error: - A match of the Shipping Address City, State, and Postal Code failed.
    

    The order is being created and marked as not yet paid.

    Any suggestions please?

    thank you in advance.

    Kind Regards

  • Matt 12 posts 98 karma points
    Oct 20, 2015 @ 00:47
    Matt
    0

    Not meaning to hijack the thread but this would be useful in this context.

    Can we get the PayPal transaction id on the return URL? I can get the invoice ok but really need the transID, if someone could help would be great

Please Sign in or register to post replies

Write your reply to:

Draft