Not Understanding
ammadibnearshad opened this issue · 1 comments
ammadibnearshad commented
Can Anyone please describe step 6 of documentation I am not understanding that. As It is my first experience with mollie.
sandervanhooft commented
Here's a minimalistic example:
use Laravel\Cashier\Billable;
use Laravel\Cashier\Order\Contracts\ProvidesInvoiceInformation;
class User extends Model implements ProvidesInvoiceInformation
{
// Add the billable trait
use \Laravel\Cashier\Billable;
/**
* Get the receiver information for the invoice.
* Typically includes the name and some sort of (E-mail/physical) address.
*
* @return array An array of strings
*/
public function getInvoiceInformation()
{
return [$this->name, $this->email];
}
/**
* Get additional information to be displayed on the invoice. Typically a note provided by the customer.
*
* @return string|null
*/
public function getExtraBillingInformation()
{
return null;
}
}