Advertisement
designbymerovingi

Paymentwall widget version 2

Dec 12th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. $widget = new Paymentwall_Widget(
  2.     $buyer_id,
  3.     $widget_id,
  4.     array(),
  5.     array(
  6.         'email'        => $buyer->user_email,
  7.         'ref'          => $type,
  8.         'customer'     => array( 'username' => $buyer->user_login, 'firstname' => $buyer->first_name, 'lastname' => $buyer->last_name ),
  9.         'history'      => array( 'registration_date' => strtotime( $buyer->user_registered ) ),
  10.         'sign_version' => 3,
  11.         'test_mode'    => $this->prefs['sandbox'], // 1 = yes 0 = no
  12.         'pingback_url' => $this->callback_url(), // www.mywebsite.com/?mycred_call=paymentwall
  13.         'success_url'  => $this->get_thankyou() // thank you url
  14.     )
  15. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement