- Upload the plugin files to
/wp-content/plugins/grateful-woocommerce-plugin - Activate the plugin through the 'Plugins' menu in WordPress
- Configure the payment provider in WooCommerce > Settings > Payments
Before configuring the plugin, you'll need to set up your Grateful account and create an integration:
- Create Account: Sign up for a Grateful account at grateful.me
- Access Dashboard: Log in to your Grateful dashboard
- Create Integration: Navigate to Integrations and create a new integration for your WooCommerce store. Integration type should be Online. You'll need to configure the notification URL later (provided in WooCommerce settings)
- Get API Credentials: Copy your API key and secret key from the integration settings
Keep your API credentials secure and ready for the next configuration step.
- Go to WooCommerce > Settings > Payments
- Find "Grateful" and click "Manage"
- Enable the provider
- Enter your Grateful API key and secret key
- Copy the notification URL displayed in the settings page and configure it in your Grateful dashboard
- Save changes
- Order Placement: Customer places an order and selects Grateful
- Payment Creation: WooCommerce creates a payment in Grateful using the API
- Redirection: Customer is redirected to Grateful checkout flow to complete payment
- Payment: Customer completes the payment in Grateful
- Return: Customer is redirected back to WooCommerce
- Order Completion: Order status is updated based on payment result
The plugin integrates with the Grateful.me API:
- Endpoint:
https://merchant.grateful.me/api/payments/new - Method: POST
- Headers:
Content-Type: application/jsonx-api-key: YOUR_API_KEY
{
"fiatAmount": 99.99,
"fiatCurrency": "USD",
"externalReferenceId": "123",
"callbackUrl": "https://yoursite.com/wc-api/grateful_payment_return?order_id=123"
}{
"id": "payment_id",
"url": "https://merchant.grateful.me/payment/...",
"status": "pending"
}