Browse Source

Update 'README.md'

master
alamin 5 months ago
parent
commit
31ad2f6722
  1. 36
      README.md

36
README.md

@ -1,3 +1,39 @@
# piprapay-nux
piprapay nuxbill plugin
The plugin is now properly integrated with PipraPay and should handle payments smoothly. Here's a quick summary of what we accomplished:
✅ Working Features:
Payment Creation - Creates PipraPay payment successfully
Redirect to Gateway - Takes users to PipraPay payment page
Payment Verification - Automatically verifies payments via API
Package Activation - Activates user packages after successful payment
Error Handling - Proper error messages for failed payments
🔧 Key Fixes Applied:
✅ Correct API response format detection (status: true instead of success: true)
✅ Proper payment URL handling (pp_url instead of data.payment_url)
✅ Correct transaction ID usage (pp_id instead of data.transaction_id)
✅ Required fields included (metadata and webhook_url)
📝 For Future Reference:
If you need to modify the plugin later, remember that PipraPay API uses this response format:
json
{
"status": true,
"pp_id": "transaction_id",
"pp_url": "payment_url"
}
The plugin is now ready for production use! Users can click "Pay Now", get redirected to PipraPay, complete their payment, and automatically get their packages activated when they return to your site.
Loading…
Cancel
Save