Editing: DriverInterface.php
<?php namespace Shetabit\Multipay\Contracts; use Shetabit\Multipay\RedirectionForm; interface DriverInterface { /** * Set payment amount. * * @param $amount * * @return $this * * @throws \Exception */ public function amount($amount); /** * Set a piece of data to the details. * * @param $key * @param $value|null * * @return mixed */ public function detail($key, $value = null); /** * Create new purchase * * @return string */ public function purchase(); /** * Pay the purchase * * @return RedirectionForm */ public function pay() : RedirectionForm; /** * verify the payment * * @return ReceiptInterface */ public function verify() : ReceiptInterface; }
Save
Back