基础
支付控制文件在 /app/Http/Controllers/Pay
Stripe
微信非美元币种异常问题
修改Currency即可,注意上面的Amount是外币价值计算值,不要改名
微信支付自定义汇率问题
在控制文件最下面,如图修改即可
支付宝货币问题
支付宝默认是CNY,Stripe会收货转,如果改为其他币种会出现回调失败
Coinbase Commerce
折扣率和手续费问题
默认作者只开放了溢价,没有开放折扣,复制改一下就行了
阻断中国大陆用户
通过NIGNX实现,混合在原先的伪静态配置中
location /buy { | |
if ( $http_cf_ipcountry = “CN”) { | |
return 302 /china.html; | |
} | |
try_files /buy/$uri /buy/$uri/ /buy/index.php$is_args$query_string $uri $uri/ /index.php$is_args$query_string; | |
} | |
location / { | |
try_files $uri $uri/ /index.php$is_args$query_string; | |
} |
Very nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!
I am currently writing a paper that is very related to your content. I read your article and I have some questions. I would like to ask you. Can you answer me? I’ll keep an eye out for your reply. 20bet