You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+72-1Lines changed: 72 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ Paymentwall_Base::setSecretKey('YOUR_SECRET_KEY'); // available in your Paymentw
42
42
```
43
43
44
44
#### Widget Call
45
-
[Web API details](http://www.paymentwall.com/en/documentation/Digital-Goods-API/710#paymentwall_widget_call_flexible_widget_call)
45
+
[Web API details](https://docs.paymentwall.com/integration/widget/digital-goods#widget-call)
46
46
47
47
The widget is a payment page hosted by Paymentwall that embeds the entire payment flow: selecting the payment method, completing the billing details, and providing customer support via the Help section. You can redirect the users to this page or embed it via iframe. Below is an example that renders an iframe with Paymentwall Widget.
Paymentwall_Base::setAppKey('YOUR_APPLICATION_KEY'); // available in your Paymentwall merchant area
112
+
Paymentwall_Base::setSecretKey('YOUR_SECRET_KEY'); // available in your Paymentwall merchant area
113
+
```
114
+
115
+
#### Widget Call
116
+
[Web API details](https://docs.paymentwall.com/integration/widget/digital-goods#widget-call)
117
+
118
+
The widget is a payment page hosted by Paymentwall that embeds the entire payment flow: selecting the payment method, completing the billing details, and providing customer support via the Help section. You can redirect the users to this page or embed it via iframe. Below is an example that renders an iframe with Paymentwall Widget.
119
+
120
+
```php
121
+
$widget = new Paymentwall_Widget(
122
+
'user40012', // id of the end-user who's making the payment
123
+
'pw', // widget code, e.g. pw; can be picked inside of your merchant account
124
+
array( // product details for Flexible Widget Call. To let users select the product on Paymentwall's end, leave this array empty
125
+
new Paymentwall_Product(
126
+
'product301', // id of the product in your system
127
+
9.99, // price
128
+
'USD', // currency code
129
+
'Gold Membership', // product name
130
+
Paymentwall_Product::TYPE_SUBSCRIPTION, // this is a time-based product; for one-time products, use Paymentwall_Product::TYPE_FIXED and omit the following 3 array elements
The Pingback is a webhook notifying about a payment being made. Pingbacks are sent via HTTP/HTTPS to your servers. To process pingbacks use the following code:
0 commit comments