Copied to clipboard

Flag this post as spam?

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


  • MK 429 posts 905 karma points
    Jan 16, 2014 @ 22:10
    MK
    0

    Paypal provider flow

    Hi there,

    Does the default paypal provider will notify the shop on success payment?

    If so, how do I implement it? 

    Cheers

    Moshe

  • Bjarne Fyrstenborg 1280 posts 3990 karma points MVP 7x c-trib
    Jan 16, 2014 @ 22:43
    Bjarne Fyrstenborg
    0

    Hi Moshe

    I think you in PayPal can configurate the settings to notify the shop owner on success payments.

    As I remember there is an option to activate notifications from PayPal for each payment.

    /Bjarne

  • Anders Burla 2560 posts 8256 karma points
    Jan 17, 2014 @ 13:15
    Anders Burla
    0

    Hi Moshe

    Do you want to to notify the e-commerce system - because that that is done using IPN in Paypal. This is what notifies Tea Commerce and finalizes the order. If you want to have custom things to happen when Paypal tells Tea Commerce that the order is paid, you would have to use the notification center of Tea Commerce and the order finalized event:
    http://documentation.teacommerce.net/net-api/notification-center/

    Kind regards
    Anders

  • MK 429 posts 905 karma points
    Jan 17, 2014 @ 16:45
    MK
    0

    Hi,

    Many thanks for your answers!

    Andres, Im actually after both, IPN and the events.

    What is the Notification URL I need to set in my paypal account?

    Regards,

    Moshe

  • MK 429 posts 905 karma points
    Jan 17, 2014 @ 22:58
    MK
    0

    Update:

    So i found some threads that mention the following url:

    http://www.mydomian.com/base/TC/PaymentCallbackWithoutOrderId/1/PayPal/2.aspx

    Ive set this im my paypal account with no success.

    Also, Im tryng to check the email system and I get the following errors in the log file:

     

    2014-01-17 21:47:56,752 [15] INFO  umbraco.BusinessLogic.Log - [Thread 19] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Error sending email using the email template: Confirmation email email for order 426cc57f-f636-4fdb-9450-38dd11b95e05 - Exception: System.InvalidOperationException: Nullable object must have a value.

       at System.Nullable`1.get_Value()

       at ASP._Page_macroScripts_tea_commerce_email_template_confirmation_cshtml.Execute() in c:\inetpub\wwwroot\prod.mydomain.com\MacroScripts\tea-commerce\email-template-confirmation.cshtml:line 14

       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()

       at System.Web.WebPages.WebPage.ExecutePageHierarchy()

       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)

       at TeaCommerce.Umbraco.Configuration.Infrastructure.Templating.TemplateRenderer.(String , Nullable`1 , Order )

       at TeaCommerce.Umbraco.Configuration.Infrastructure.Templating.TemplateRenderer.(String , Nullable`1 , Order , Nullable`1 , String )

       at TeaCommerce.Umbraco.Configuration.Infrastructure.Templating.TemplateRenderer.RenderTemplateFile(String templateFile, Order order, Boolean useOrderLanguageForRendering)

       at TeaCommerce.Api.Models.EmailTemplate.Send(Order order)

    2014-01-17 21:50:28,672 [15] INFO  umbraco.BusinessLogic.Log - [Thread 21] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: PayPal() - Error making API request - error code: 10002

    2014-01-17 21:50:29,250 [15] INFO  umbraco.BusinessLogic.Log - [Thread 19] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Error sending email using the email template: Confirmation email email for order 426cc57f-f636-4fdb-9450-38dd11b95e05 - Exception: System.InvalidOperationException: A recipient must be specified.

       at System.Net.Mail.SmtpClient.Send(MailMessage message)

       at TeaCommerce.Api.Models.EmailTemplate.Send(Order order)

    2014-01-17 21:50:31,282 [15] INFO  umbraco.BusinessLogic.Log - [Thread 21] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: PayPal(ORDER-1) - Error making API request - error code: 10002

    2014-01-17 21:50:38,735 [15] INFO  umbraco.BusinessLogic.Log - [Thread 29] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Error sending email using the email template: Confirmation email email for order 426cc57f-f636-4fdb-9450-38dd11b95e05 - Exception: System.InvalidOperationException: A recipient must be specified.

       at System.Net.Mail.SmtpClient.Send(MailMessage message)

       at TeaCommerce.Api.Models.EmailTemplate.Send(Order order)

    2014-01-17 21:52:05,796 [15] INFO  umbraco.BusinessLogic.Log - [Thread 11] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: PayPal(ORDER-1) - Error making API request - error code: 10002

    2014-01-17 21:52:35,796 [15] INFO  umbraco.BusinessLogic.Log - [Thread 25] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: PayPal(ORDER-1) - Error making API request - error code: 10002

    2014-01-17 21:52:52,499 [15] INFO  umbraco.BusinessLogic.Log - [Thread 11] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Error sending email using the email template: Confirmation email email for order 426cc57f-f636-4fdb-9450-38dd11b95e05 - Exception: System.InvalidOperationException: A recipient must be specified.

       at System.Net.Mail.SmtpClient.Send(MailMessage message)

       at TeaCommerce.Api.Models.EmailTemplate.Send(Order order)

     

    Any idea?

    Cheers

    Moshe

  • Anders Burla 2560 posts 8256 karma points
    Jan 20, 2014 @ 18:13
    Anders Burla
    0

    Looks like your order doesnt have an first + last name + email address for the order. That would give you the recipients must be specified. The Error making API request - error code: 10002 is statet here is incorrect username + password. If running test mode you should have a sandbox account.
    https://developer.paypal.com/docs/classic/api/errorcodes/

    And the nullable error in the confirmation email looks like some info is not available at the order that the email confirmation expect. Try and uncomment until it works so you know which part fails.

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft