Home
Softono
r

rizdaprasetya

Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.

Total Products
1

Software by rizdaprasetya

midtrans-mobile-merchant-server--php-sample-
Open Source

midtrans-mobile-merchant-server--php-sample-

This is a PHP-based sample implementation of a backend server designed to support Midtrans mobile SDKs for iOS and Android. Its primary purpose is to securely handle payment transactions by generating HTTP Authorization headers using your secret Server Key. This ensures that sensitive credentials never reside on the mobile client, which could be reverse-engineered. The server acts as a secure proxy, forwarding client requests to the Midtrans Snap API and returning the response token or redirect URL. The core functionality is contained within a single endpoint, POST /charge/. Deployment requires editing the configuration file to insert your specific Server Key and hosting it on a web server accessible by the mobile application. The provided URL should be set as the merchant base URL in the mobile SDK configuration. This reference code is intended for implementation guidance and basic testing via tools like CURL or Postman. For production environments, users are advised to enhance security measures beyond this

Payment & Checkout
17 Github Stars