lpaystack icon indicating copy to clipboard operation
lpaystack copied to clipboard

Set client request data

Open webong opened this issue 6 years ago • 1 comments

What does this PR do?

This PR enables a setRequestData method on the paystack class and accepts an array of data thereby adding the data to the Http request instance.

How should this be manually tested?

To use this method

$data = [
            'name'          => "Xeviant Paystack",
            'description'   => "Test Transaction",
            'amount'        => "1000",
        ];
// Using Paystack Facade
Paystack::setRequestData($data)->createPlan();

webong avatar Aug 02 '19 01:08 webong

Thanks, @webong, this is well thought of!

Can you fix the Styles CI error? then we can merge

bosunski avatar Aug 04 '19 21:08 bosunski