Links
#
Create LinkCreates a payment link. A payment link that can be used for one-time payments.
#
PayloadRefer to Paymongo documentation for payload guidelines.
#
Sampleuse Luigel\Paymongo\Facades\Paymongo;
$link = Paymongo::link()->create([ 'amount' => 100.00, 'description' => 'Link Test', 'remarks' => 'laravel-paymongo']);
#
Get LinkRetrieve a payment link by passing the id or the reference number to the find($id)
method.
#
Sampleuse Luigel\Paymongo\Facades\Paymongo;
$link = Paymongo::link()->find('link_wWaibr22CzEnficNhQNPUdoo');$linkbyReference = Paymongo::link()->find('WTmSJbV');
#
Archive LinkArchive a payment link by using the find($id)
method and chaining the ->archive()
method.
#
Sampleuse Luigel\Paymongo\Facades\Paymongo;
$link = Paymongo::link()->find('link_wWaibr22CzEnficNhQNPUdoo')->archive();
#
Unarchive LinkUnarchive a payment link by using the find($id)
method and chaining the ->unarchive()
method.
#
Sampleuse Luigel\Paymongo\Facades\Paymongo;
$link = Paymongo::link()->find('link_wWaibr22CzEnficNhQNPUdoo')->unarchive();