Jump to:

113 Posts in 223 Topics by 53 members

Payments and Payment Gateway / APIs

SilverStripe Forums » Payments and Payment Gateway / APIs » Configuring Other Payment Gateways

This is a forum for discussing SilverStripe can-do payments and their APIs / Gateways.

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

Page: 1
Go to End
Author Topic: 2461 Views
  • Bambii7
    Avatar
    Community Member
    254 Posts

    Configuring Other Payment Gateways Link to this post

    Hi all does any one know of a link to documentation on the payment module? I was trying to test out its PayPalPayment class.

    From the looks of things I add a custom "processPayPalPayment" to a decorator object like in the Payable demo.
    Any help or hints would be appreciated.

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: Configuring Other Payment Gateways Link to this post

    Nice anchored linking....... can't tell if you're actually interested PayPalPayments or just interested in linking to your site.....
    I'm using the latest Payment module with these config settings in mysite/_config.php

    Payment::set_supported_methods(array(
       'ChequePayment' => 'Cheque Or Pay On Site',
       'PayPalPayment'   => 'PayPal (Credit Card)'
    ));
    if(Director::isLive()) {
       //forcing paypal sandbox even in live mode uncomment the line below "set_account_email" for live use
       PayPalPayment::set_test_mode('mysandboxemail');
       //PayPalPayment::set_account_email('myactualpaypalemail');
    } else {
       // configure test account
       PayPalPayment::set_test_mode('mysandboxemail');
    }
    Director::set_environment_type("dev");

    Order::set_email('myemail');
    Order::set_subject('New Order');

    ProductGroup::set_page_length(21); //set the default number of products to show on each product group page
    Product_Image::set_thumbnail_size(100,100); // set the width and height of product thumbnails
    Product_Image::set_content_image_width(300); // allows you to set the width of Product page images
    Product_Image::set_large_image_width(500);

    //choose overview fields for Report admin
    Order::set_table_overview_fields(array(
    'ID' => 'Order No',
    'Created' => 'Created',
    'Member.FirstName' => 'First Name',
    'Member.Surname' => 'Surname',
    'Total' => 'Total',
    'Status' => 'Status'
    ));
    SimpleShippingModifier::set_default_charge(20);
    SimpleShippingModifier::set_charges_for_countries(array(
       'NZ' => 10,
    ));

    2461 Views
Page: 1
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.