PayFast documentation in markdown format so it's easier to develop locally.
Quickly integrate PayFast into your platform.
import { useState } from 'react'; | |
/** | |
* @typedef {Object} UseGreetingReturns | |
* @property {Function} setNewName Sets a new name | |
* @property {Function} getGreeting Returns a greeting message | |
*/ | |
/** | |
* Hook that is used for greeting a user |
/** | |
* @typedef {Object} Props | |
* @property {string} name Name of the user e.g. Lily | |
*/ | |
/** | |
* Displays a greeting to the user. | |
* @param {Props} props | |
* @example | |
* <Greeting name="Lily" /> |
const person = { | |
firstName: 'Michael', | |
lastName: 'Scott', | |
}; | |
/** | |
* @typedef {Object} Person | |
* @property {string} firstName The person's first name | |
* @property {string} lastName The person's last name | |
*/ |
/** | |
* @deprecated since version 1.0.0 | |
*/ | |
function addNumbers(value1, value2) { | |
return value1 + value2; | |
} |
/** | |
* Adds two numbers together and returns the result. | |
* @param {number} value1 - The first value | |
* @param {number} value2 - The second value | |
* @returns {string} The values that have been added together | |
* @example | |
* const a = 10; | |
* const b = 20; | |
* | |
* const result = addNumbers(a, b); |
/** | |
* Adds two numbers together and returns the result. | |
* @param {number} value1 - The first value | |
* @param {number} value2 - The second value | |
* @returns {string} The values that have been added together | |
*/ | |
function addNumbers(value1, value2) { | |
return value1 + value2; | |
} |
/** | |
* Adds two numbers together and returns the result. | |
* @param {number} value1 The first value | |
* @param {number} value2 The second value | |
*/ | |
function addNumbers(value1, value2) { | |
return value1 + value2; | |
} |
/** | |
* Adds two values together and returns the result. | |
*/ | |
function addNumbers(value1, value2) { | |
return value1 + value2; | |
} |