InstallationDownload the code and place it in the
app/Extensions/Gateways/Midtrans directory.
ConfigurationIn the admin panel, go to
<span style="color:rgb(44, 130, 201)">Settings </span>><span style="color:rgb(44, 130, 201)"> Payment Gateways</span> and click on the
<span style="color:rgb(26, 188, 156)">Midtrans</span> gateway. Enter
<span style="color:rgb(26, 188, 156)">Midtrans</span> MerchantID/
Server-Key/
Client-Key then
Save.UsageWhen a user selects the
<span style="color:rgb(26, 188, 156)">[B]Midtrans[/B] gateway, they will be redirected to the Midtrans payment page. After the payment is completed, the user will be redirected back to the site.
Setup Callback On <span style="color:rgb(26, 188, 156)">Midtrans</span>1. Settings >
SNAP<span style="color:rgb(44, 130, 201)"> Preferences</span> > System Settings
Finish URL <code class="bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded text-sm font-mono">https://yourdomain.com</code>
Unfinish URL <code class="bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded text-sm font-mono">https://yourdomain.com</code>
Error Payment URL <code class="bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded text-sm font-mono">https://yourdomain.com</code>
2. Settings > Payment >
<span style="color:rgb(44, 130, 201)">Finish Redirect URL</span>Finish Redirect URL <code class="bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded text-sm font-mono">https://yourdomain.com</code>
3. Settings > Payment >
<span style="color:rgb(44, 130, 201)">Notification URL</span>Notification URL <code class="bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded text-sm font-mono">https://yourdomain.com/extensions/midtrans/webhook</code>
Recurring payment notification URL <code class="bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded text-sm font-mono">https://yourdomain.com</code>
Account linking notification URL <code class="bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded text-sm font-mono">https://yourdomain.com</code>