# Get Stripe Payment by wpsharif

Get Stripe Payment by wpsharif is a WordPress plugin that allows you to accept payments anywhere on your site using Stripe. Easily add a payment button via shortcode and configure your Stripe API keys and redirect URLs from the WordPress settings.

## Features
- Simple Stripe payment integration
- Customizable payment button via shortcode
- Easy setup in WordPress settings
- Redirects for success and cancel URLs

## Installation
1. Upload the plugin files to the `/wp-content/plugins/paymentik` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to **Settings > General** to configure your Stripe API keys and URLs.

## Usage
Add the payment button anywhere using the following shortcode:

```
[paymentik amount="10.00" currency="USD" description="Payment" button_text="Pay with Stripe" button_color="#007bff" button_text_color="#ffffff" extra_classes="" product_name="Product"]
```

### Shortcode Attributes
| Attribute           | Default     | Description                                      |
|---------------------|-------------|--------------------------------------------------|
| amount              | 10.00       | Payment amount                                   |
| currency            | USD         | Currency code (e.g., USD, EUR)                   |
| description         | Payment     | Payment description                              |
| button_text         | Pay with Stripe | Button label                                 |
| button_color        | #007bff     | Button background color                          |
| button_text_color   | #ffffff     | Button text color                                |
| extra_classes       | (empty)     | Extra CSS classes for the button                 |
| product_name        | Product     | Name of the product/service                     |

## Settings
After activating the plugin, go to **Settings > General** in your WordPress admin. You will find the following fields:

- **Publishable Key**: Your Stripe publishable key (starts with `pk_test_` or `pk_live_`).
- **Private Key**: Your Stripe secret key (starts with `sk_test_` or `sk_live_`).
- **Success URL**: The URL users are redirected to after a successful payment.
- **Cancel URL**: The URL users are redirected to if the payment is cancelled.

### Settings Page Screenshot
![Settings Page](assets/img/docs.png)

## Support
For support or feature requests, please visit [https://thesharif.dev](https://thesharif.dev)

---
**Author:** wpsharif  
**Version:** 1.0.0