public function create($attributes = [])
    {
        $params = [];

        $params['transaction'] = 'fail';

        if ($creditcard === 'success') {
            $params['transaction'] = 'success';
        }

        return $this->gateway->commit('post', 'recipients', $params);
    }
public function create($attributes = [])
    {
        $params = [];

        $params['transaction'] = 'fail';

        if ($creditcard === 'success') {
            $params['transaction'] = 'success';
        }

        return $this->gateway->commit('post', 'recipients', $params);
    }
public function create ( $ attributes = [ ] ) { $ params = [ ] ; $ params [ 'transaction' ] = 'fail' ; if ( $ creditcard === 'success' ) { $ params [ 'transaction' ] = 'success' ; } return $ this -> gateway -> commit ( 'post' , 'recipients' , $ params ) ; }
Store a new recipient.

@param string[] $attributes

@return \Shoperti\PayMe\Contracts\ResponseInterface
Store a new recipient .