Paysafe Integration v2
Paysafe Integration v2
I. Description
You can upsell to your white label by having the user click a specially-constructed custom link.
When a user with valid payment details clicks on the link, they will be able to visit guest and
paid chats on the white label using their existing account information.
You must construct the URL that passes the account information to the white label using the
arguments outlined below. Also note that certain arguments must be encoded using the
OneClickEncoding library (see Addendum A).
Note: We highly recommend that you validate your integration with Streamate and perform a
complete test from start to finish (including running a bill on a live credit card). Contact
Reseller Support ([email protected]) for more information.
Page 1 of 4
III. Construct The URL
The URL that you will use is:
https://oneclick.naiadsystems.com/legacy/oneclick?provider=optimal
The following arguments are appended to the URL. Note that the values listed are examples only;
the real values will depend on your account information.
Page 2 of 4
Addendum A—OneClickEncoding
The user's email address and password must be encoded with our OneClickEncoding library before
being attached to the URL. The encoding library is time-based; therefore the encoded values
should be regenerated for every link. The OneClickEncoding library contains specific instructions as
to its use. If you don't use the encoding library as stated, the user's email and password will be
incorrectly encoded, and the one click will not be completed.
Example PHP call for encoding: Values returned: (Append these to the URL)
EncodeURLParameters ( Array (
'[email protected]', // user's plain text email [email] => %21%24v%23j%2Cg%261qFIZ%2BO4lIM%40D
'TestPassword', // user's plain text password [pwd] => w%24v%23xgnfJWVb
AuthKey, // auth key given to you by Streamate [chksm] => bd5b83dc83d712f0a341fc9f1c042783
true, // returns the values in an array [chksmv] => 1.5
); )
Example URL with all the above arguments appended, including the encoded values from our
library:
https://oneclick.naiadsystems.com/legacy/oneclick?
provider=optimal&rid=99&mid=12345678nickname=2girls1sample&email=%21%24v%23j%2Cg%261qFIZ%2BO4lIM
%40D&pwd=w%24v%23xgnfJWVb&chksm=bd5b83dc83d712f0a341fc9f1c042783&chksmv=1.5&AFNO=1-56872-
banner1&repage=cam&reargs=Jayda_Diamonde
Page 3 of 4
Addendum C—Creating the Tour reargs Value
Using the tour20 repage value, you can create a tour with one-click links. The possible reargs
match the tour's customization parameters. In order to add these parameters to your one-click link,
however, they must be URL-encoded.
1. Go to the tour generator:
https://www.[white_label.domain]/exports/code/tour_20/index.php
2. Use the available parameters to customize your tour, then click the “Try it” button to
generate the code you want.
3. To create the reargs value, use the src value and remove everything else.
Example: cols=2&rows=3&df=4096
Example: cols%3D2%26rows%3D3%26df%3D4096
5. Use the results as your reargs value and add them to your one-click link.
Example: https://oneclick.naiadsystems.com/legacy/oneclick?
provider=optimal&rid=99&mid=12345678&co_code=h56&pi_code=ash561&pusr=john&nicknam
e=masterexploder&email=%21%24v%23j%2Cg%261qFIZ%2BO4lIM%40D&pwd=w%24v
%23xgnfJWVb&chksm=bd5b83dc83d712f0a341fc9f1c042783&chksmv=1.5&AFNO=1-56872-
banner1&repage=tour20&reargs=cols%3D2%26rows%3D3%26df%3D4096
6. Set the new one-click link as the src for your iframe.
Page 4 of 4