DrizzlePay is a payment plugin that connects many payment systems. This plugin only provides the payment system which you can use for your plugin and theme development.
You need to send the information via post method to this page
drizzle_pay_checkout_url($params, $return)
#$params Required
$params = array(
'product' => osc_item_title(),
'product_detail' => 'Make premium for ad id '.osc_item_id(),
'amount' => '5',
'currency' => 'usd',
);
#$return optional, Whatever you send through this array will return after success payment.
#You can use this values to trigger functions
$return = array(
'product_type' => 'premium_ads',
'itemId' => osc_item_id(),
);
payment_cancel: This hook run after the canceled transaction. You can use this hook to run your own function and you can redirect to a theme or plugin file.
invalid_transaction: This hook run after when duplicate or invalid transaction happening. You can use this hook to run your own function and you can redirect to a theme or plugin file.
What do you need?
To integrate this plugin for your project you need to use some basic functions. This plugin has its own checkout page. what you need to do is send the payment information to this pageYou need to send the information via post method to this page
drizzle_pay_checkout_url($params, $return)
#$params Required
$params = array(
'product' => osc_item_title(),
'product_detail' => 'Make premium for ad id '.osc_item_id(),
'amount' => '5',
'currency' => 'usd',
);
#$return optional, Whatever you send through this array will return after success payment.
#You can use this values to trigger functions
$return = array(
'product_type' => 'premium_ads',
'itemId' => osc_item_id(),
);
Important Hooks
payment_success: This hook run after the successful transaction. You can use this hook to run your own function and you can redirect to a theme or plugin file.payment_cancel: This hook run after the canceled transaction. You can use this hook to run your own function and you can redirect to a theme or plugin file.
invalid_transaction: This hook run after when duplicate or invalid transaction happening. You can use this hook to run your own function and you can redirect to a theme or plugin file.