Skip to content

op-developer/op-online-payment-api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

op-online-payment-api-examples

A code sample repository for OP Online Payment API. The complete API documentation can be found on the OP Developer portal.

Contents

The repository contains the following samples:

payment-initialization.sh

A Bash script demonstrating how to initiate a payment with API in the SANDBOX environment. The script needs wget, curl, openssl, and uuidgen installed in order to run.

The script prints intermediate steps and their results while calculating the Authorization header value. The API call is done via curl, and the command itself is printed before executing.

This reference script can be useful in identifying problems in generating the Authorization header value, and constructing the set of headers for the request.

payment-init-and-status.python

A python script demonstrating how to initiate a payment with API in the SANDBOX environment and getting the status of the same payment

The script prints intermediate steps and their results while calculating the Authorization header value.

This reference script can be useful in identifying problems in generating the Authorization header value, and constructing the set of headers for the request.

About

A code sample repository for OP Online Payment API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •