在测试模式下,当我创建新客户并尝试付款时,我收到此错误.
客户cus_7Zz2BCnybIZLGw没有ID为tok_17Kp8GAwLkQPB7OqrrM73VVI的链接卡
我使用卡号:4242424242424242 exp_month:12 exp_year 2016
回复是,
Array
(
[charge_status] =>
[error_info] => Array
(
[type] => invalid_request_error
[message] => Customer cus_7Zz2BCnybIZLGw does not have a linked card with ID tok_17Kp8GAwLkQPB7OqrrM73VVI.
[param] => card
[code] => missing
)
[message] => Customer cus_7Zz2BCnybIZLGw does not have a linked card with ID tok_17Kp8GAwLkQPB7OqrrM73VVI.
)
Run Code Online (Sandbox Code Playgroud)
输入费用数据是,
$customer = Stripe_Customer::create(array(
'account_balance' => 100,
'source' => $token,
'email' => strip_tags(trim($email))
)
);
$customer_id = $customer->id;
$charge = array(
'card' => 4242424242424242,
'amount' => 100,
'currency' …Run Code Online (Sandbox Code Playgroud) 我正在为我的静态PHP网站创建WordPress的博客页面.当博客页面URL更改为pretty permalink(example.com/blog/my-post-page)时,加载内容(不重定向到index.php,只有内容加载和URL将像http://example.com/blog/my-post-page)index.php(我的网站的主页))位于博客文件夹之外而不是single.php内容.
当永久链接更改为default(example.com/blog/?p=123)时,它将完美地工作.
我需要网址为http://example.com/blog/my-post-page.
编辑: - 我更新了定制结构的固定链接/index.php/%postname%/.但现在帖子页面正在显示example.com/blog/index.php/my-post-page.
我认为新的WordPress版本引发了这个问题.(版本4.2.2).任何index.php从URL中删除的解决方案?
我的目录结构: -
/ - Root
/blog - Blog folder
/blog/wp-content/themes/mytheme/ - Theme folder
/blog/wp-content/themes/mytheme/single.php - Post Single page
/index.php - Home page (Loading contents of this file)
Run Code Online (Sandbox Code Playgroud)
我的htaccess: -
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule …Run Code Online (Sandbox Code Playgroud) [select my_select class:input class:styled "Select Options"
"Option 1" "Option 2" "Option 3" "Option 4"]
Run Code Online (Sandbox Code Playgroud)
题:
'Select Options'如果用户在接收电子邮件时未选择任何选项,如何防止打印?如果用户选择第一个选项('Select Options'),则不应该像'Select Options'邮件一样打印.
什么是array_column()jQuery中的PHP ?我需要数组中的数据而不需要循环,就像在PHP中一样.
php ×4
javascript ×2
jquery ×2
wordpress ×2
.htaccess ×1
mod-rewrite ×1
payment ×1
redirect ×1