Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

payflex api examples php

curl -X post https://api.payflex.co.za/order/
    -H 'content-type: application/json' 
    -H 'authorization: Bearer [access_token]'
    -d '{
    "amount": 105.00,
    "consumer": {
      "phoneNumber": "64274123456",
      "givenNames": "James",
      "surname": "Smith",
      "email": "abc123.test@payflex.co.za"
    },
    "billing": {
      "addressLine1": "23 Duncan Tce",
      "addressLine2": "",
      "suburb": "Kilbirnie",
      "city": "Wellilngton",
      "postcode": "1000",
      "state": ""
    },
    "shipping": {
      "addressLine1": "23 Duncan Tce",
      "addressLine2": "",
      "suburb": "Kilbirnie",
      "city": "Wellilngton",
      "postcode": "1000",
      "state": ""
    },
    "description": "",
    "items": [
      {
        "description": "test",
        "name": "test",
        "sku": "test",
        "quantity": 1,
        "price": 100.00
      }
    ],
    "merchant": {
      "redirectConfirmUrl": "http://merchantsite.com/confirm",
      "redirectCancelUrl": "http://merchantsite.com/cancel",
      "statusCallbackUrl": "http://merchantsite.com/callback"
    },
    "merchantReference": "test",
    "taxAmount": 0,
    "shippingAmount": 5
  }'
Comment

PREVIOUS NEXT
Code Example
Javascript :: LeagueFlysystemAwsS3v3AwsS3Adapter 
Javascript :: weakset use cases 
Javascript :: lwc reduceErrors showtoast 
Javascript :: context 
Javascript :: slick slider on change 
Javascript :: how to confirm if angular js in installed 
Javascript :: multi command run in one in terminal npm 
Javascript :: before each function 
Javascript :: NodeJS Multi-Core Processors Example 
Javascript :: react js date range 
Javascript :: jquery find include self 
Javascript :: array inside array javascript 
Javascript :: sort array without using sort function in javascript 
Javascript :: hreroku 
Javascript :: javascript to typescript converter 
Javascript :: Using conditional tailwind classes for twin.macro 
Javascript :: react Examples of correct cod 
Javascript :: javascript declaring variables 
Javascript :: Hexo - Execute Console Commands 
Javascript :: adonis model inheritance 
Javascript :: react-folder tree example 
Javascript :: MAP METHOD. IMPORTANT 
Javascript :: javascript Scroll into a div that is hidden initially in react 
Javascript :: Make a card dynamic with Angular JS 
Javascript :: How to call keyup function on textbox for every dynamic generated form in Angular8 
Javascript :: HTTP Get with looping password validation not working 
Javascript :: context Menus 
Javascript :: assignment is to create a small website using NestJS in the backend and basic HTML CSS in the frontend 
Javascript :: ant design rtl 
Javascript :: Custom Delimiter For Mustache.js 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =