Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions docs/api/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,10 @@ This key should be stored securely and not shared with anyone. It should be used

## POST GraphQL Query

Queries are then executed by sending POST HTTP requests to the endpoint:

***POST `https://api.PARTNER_NAME.STAGE.com/graphql`***
Queries are then executed by sending POST HTTP requests to the endpoint. You can find the API endpoint in the Pay Theory Portal under the Settings tab.

```commandline
curl --location --request POST 'https://api.PARTNER_NAME.STAGE.com/graphql'
curl --location --request POST '{GraphQL API URL}'
--header 'Authorization: MERCHANT_UID;SECRET_KEY'
--header 'Content-Type: application/graphql'
--data '{"query":"{transactions(limit: 3) { items { transaction_id }}}"}'
Expand Down
97 changes: 50 additions & 47 deletions docs/api/payment_links.md

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion docs/main/getting_started/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ You will need access to your Pay Theory Sandbox. If you do not have a sandbox ac
## 1. Importing the SDK
In order to import your SDK, you will need to copy and paste your Import URL into the header of your code editor.

The SDK URL can be found in the Pay Theory portal under the settings tab as the SDK Import URL.

```
<script src="https://start.sdk.paytheory.com/index.js"> </script>
<script src={SDK Import URL}> </script>
```
***

Expand Down
5 changes: 4 additions & 1 deletion docs/main/online_payments/ach_payments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ You will need access to your Pay Theory Sandbox. If you do not have a sandbox ac
## 1. Importing the SDK
In order to import your SDK, you will need to copy and paste your Import URL into the header of your code editor.

The SDK URL can be found in the Pay Theory portal under the settings tab as the SDK Import URL.


```
<script src="https://start.sdk.paytheory.com/index.js"> </script>
<script src={SDK Import URL}> </script>
```
***

Expand Down
10 changes: 6 additions & 4 deletions docs/main/online_payments/payment_button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ This guide will walk you through the steps to create a payment button that will
## 1. Import the SDK
You need to use the Pay Theory Web SDK. This is available by adding the below script into your web header. This button will open a hosted checkout page that will allow the user to select a payment method and complete the payment.

```jsx title="javascript"
<script src="https://start.sdk.paytheory.com/index.js"></script>
The SDK URL can be found in the Pay Theory portal under the settings tab as the SDK Import URL.

```
<script src={SDK Import URL}> </script>
```
***

## 2. Add Pay Theory element to your Html
This div is used to mount an iframe that will include a checkout button. You need to add the Pay Theory elements to your HTML. You can place these elements anywhere in your HTML and the SDK will place the button in the correct place.

```jsx title="javascript"
<div id = "pay-theory-checkout-button" ></div>
```html
<div id="pay-theory-checkout-button" ></div>
```
***

Expand Down
2 changes: 1 addition & 1 deletion docs/main/recurring_payments/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Recurring payments are payments that get triggered on a specified interval. The
:::danger Before you start
You will need to be able to tokenize a payment in order to set up a recurring payment.

<a href= "../../online_payments/tokenizing/quickstart" class="button button--primary button--md">Tokenizing Quickstart</a>
<a href= "../../main/online_payments/tokenizing/quickstart" class="button button--primary button--md">Tokenizing Quickstart</a>
:::

## Payment plans
Expand Down
4 changes: 3 additions & 1 deletion docs/sdk/javascript/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ Here is some steps to get you started with a basic implementation.

To use the Pay Theory Web SDK, you need to add this script to your web header:

The SDK URL can be found in the Pay Theory portal under the settings tab as the SDK Import URL.

```html
<script src="https://start.sdk.paytheory.com/index.js"></script>
<script src={SDK Import URL}> </script>
```

The SDK will be available on the window object as `paytheory`.
Expand Down
101 changes: 0 additions & 101 deletions home/Overview/CARD_PRESENT.md

This file was deleted.

100 changes: 0 additions & 100 deletions home/Overview/CHECKOUT_BUTTON.md

This file was deleted.

46 changes: 0 additions & 46 deletions home/Overview/EMAIL_RECEIPTS.md

This file was deleted.

Loading