\App\Http\ControllersPaymentCardController

Class PaymentCardController.

Summary

Methods
Properties
Constants
index()
create()
store()
destroy()
addSamplePaymentCard()
deleteSamplePaymentCard()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

index()

index() : \Illuminate\Http\Response

Fetch all payment cards.

Returns

\Illuminate\Http\Response

create()

create() : \Illuminate\Http\Response

Add a new payment method.

Returns

\Illuminate\Http\Response

store()

store(\Illuminate\Http\Request  $request) : \App\Http\Controllers\Response

Store a payment method.

Parameters

\Illuminate\Http\Request $request

Payment Method Add Request

Returns

\App\Http\Controllers\Response

destroy()

destroy(\Illuminate\Http\Request  $request, string  $slug) : \Illuminate\Http\Response

Remove the specified resource from storage.

Parameters

\Illuminate\Http\Request $request
string $slug

payment_card_id

Returns

\Illuminate\Http\Response

addSamplePaymentCard()

addSamplePaymentCard() : void

Add a sample payment card for testing TODO: return the payment card id for code reuse if required.

deleteSamplePaymentCard()

deleteSamplePaymentCard() : void

Delete the sample card TODO: allow deletion by passing the id of the sample card.