Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » new paypal payment code for ecommerce

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2 3
Go to End
Author Topic: 34838 Views
  • Nicolaas
    Avatar
    Forum Moderator
    213 Posts

    new paypal payment code for ecommerce Link to this post

    I would appreciate a review of the attached code. it is just in its alpha state at the moment.

    Cheers

    Nicolaas

  • JonathanParker
    Avatar
    Community Member
    37 Posts

    Re: new paypal payment code for ecommerce Link to this post

    Some examples on implimentation would be good. I'm relativly new to SS so am I guessing right that I create a PayPal.ss as well as place your code in the mysite/code/ then do a db/build?flush=1

    Regards.

    Jonathan

  • Nicolaas
    Avatar
    Forum Moderator
    213 Posts

    Re: new paypal payment code for ecommerce Link to this post

    Hi Jonathan

    The Paypal comes as part of the e-commerce module and it is an extension of the payment class. Did you figure that out?

    Cheers

    Nicolaas

  • JonathanParker
    Avatar
    Community Member
    37 Posts

    Re: new paypal payment code for ecommerce Link to this post

    I'm slowly getting there; I'm new (4 weeks) to SS. I have recently installed the ecommerce module (latest daily build). That build already has a PayPalPayments.php file, but the contents are different from the file that you attached to your post. Which shall I use?

    Am I right in thinking that the payments options are those that I need to set within the config file.
    // Define which payment methods your site uses.
    Payment::set_supported_methods(array(
       'DPSPayment' => 'Credit card (DPS)',
       'ChequePayment' => 'Cheque'
    ));

    I should Add 'PayPalPayments' => 'Credit card (PP)';

    In your file you mention setting paypal parameters within the config file. I take it that these details i.e. paypal account etc should be set up also to get the PayPal method to work?

    Regards.

    Jonathan.

    P.S. I'm on freenode if you hav etime to chat about this for a min.

  • Nicolaas
    Avatar
    Forum Moderator
    213 Posts

    Re: new paypal payment code for ecommerce Link to this post

    I have written you some comments on the IRC channel. Let me know if you got them - if you did not then I will email them to you.

  • JonathanParker
    Avatar
    Community Member
    37 Posts

    Re: new paypal payment code for ecommerce Link to this post

    Hi Nicolass, Sorry I closed down the chat chanel before I read this post. I would appreciate it if you could e-mail me some notes on implimentation. I may be new to SS but I'm fine with php etc.

    E-Mail: jonathan@dabnis.com

    Regards

    Jonathan

  • WorldNZ
    Avatar
    Community Member
    7 Posts

    Re: new paypal payment code for ecommerce Link to this post

    Hi Nicolaas,
    Is it possible to send me implementation notes you may have so I can see how this works and test it also

    Email: anthonykennelly@gmail.com

    Thanks in advance
    Anthony

  • WorldNZ
    Avatar
    Community Member
    7 Posts

    Re: new paypal payment code for ecommerce Link to this post

    Hi All

    Attached is the paypal module developed by Nicolaas.

    This version fixes the problem of the form submission not automatically redirecting to paypal.

    Instructions (provided by Nicolaas) for implementing this module are included in the php file in the zip file located here. http://open.silverstripe.com/ticket/1760

    We have done some testing and so far it works well.

    This method is an external payment method where you are actually redirected to the paypal site and once payment has been processed you are linked back to your SS cart where SS updates the transaction as successful or unsuccessful.

    Paypal charges for the onsite method of processing so this is why Nicolaas opted for the off-site payment method.

    You can view paypal ticket here http://open.silverstripe.com/ticket/1760

    34838 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.