#!/usr/bin/env python
# -*- coding: utf-8 -*-
import OpenSSL
import datetime
import hashlib
import ujson
from alipay.aop.api.util.SignatureUtils import *
import textwrap
import base64
from service import Service
class test():
rsaPrivateKey = '您的私钥'
def __init__(self, app_id='您的appid'):
self.gatewayUrl = 'https://openapi.alipay.com/gateway.do'
self.method = 'alipay.fund.trans.uni.transfer'
self.appId = app_id
self.apiVersion = '1.0'
self.signType = 'RSA2'
self.postCharset = 'UTF-8'
self.format = 'json'
self.apiVersion = '1.0'
self.appCertSN = self.getCertSN('您的app证书路径')
self.alipayRootCertSN = self.getRootCertSN('您的支付宝根证书')<