支付模块
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
680 B

  1. package pay
  2. import (
  3. "testing"
  4. )
  5. func TestPay(t *testing.T) {
  6. channel, err := JudgePayChannel("35618318", "mall")
  7. if err != nil {
  8. t.Errorf("Reverse == %s", err)
  9. }
  10. t.Log(channel.Identifier)
  11. }
  12. func TestPayConfig(t *testing.T) {
  13. //args := map[string]string{
  14. // "app_id": "",
  15. // "private_key": "",
  16. // "subject": "哈哈哈",
  17. // "ord_id": "1",
  18. // "amount": "1",
  19. // "notify_url": "",
  20. // "rsa": "0",
  21. // "pkcs": "0",
  22. // "pay_ali_use_type": "0",
  23. // "wx_applet_filepath_url": "",
  24. // "platform": "ios",
  25. //}
  26. //Alipay(args)
  27. }