get https://api.sendwyre.com/v2/paymentMethods
Retrieve all payment methods owned by the current account
Log in to see full request history
time | status | user agent | |
---|---|---|---|
Retrieving recent requests⦠|
Loadingβ¦
Responses
Retrieve all payment methods owned by the current account
time | status | user agent | |
---|---|---|---|
Retrieving recent requests⦠|
xxxxxxxxxx
65url = WyreApi.API_URL + WyreApi.API_VER2 + WyreApi.API_GET_ALL_PAYMENT_METHODS \
'''
This is a Python 3.7 Module that lists all the payment methods in
the test env
'''
import requests
import time
import os
import urllib.parse
import hashlib
import hmac
import json
β
β
class WyreApi:
API_KEY = os.getenv("WYRE_APIKEY")
SEC_KEY = os.getenv("WYRE_TOKEN")
API_URL = "https://api.testwyre.com"
API_VER2 = "/v2"
API_GET_ALL_PAYMENT_METHODS = "/paymentMethods"
β
def calc_auth_sig_hash(self, url_body):
# calculates a signature per Wyre API:
# https://docs.sendwyre.com/docs/authentication#secret-key-signature-auth
message, secret = bytes(
url_body, 'utf-8'), bytes(WyreApi.SEC_KEY, 'utf-8')
newhash = hmac.new(secret, message, hashlib.sha256)
return newhash.hexdigest()
β
def calcTimeStamp(self):
Try It!
to start a request and see the response here! Or choose an example: