我正在使用Django PayPal。PayPal 有一个选项列表,您可以通过按钮传递。我正在尝试将其中一些添加到我的paypal_dict
paypal_dict = {
# ...
# preopulate paypal checkout page
"email": invoice.user.email,
"first_name": invoice.user.first_name,
"last_name": invoice.user.last_name,
"address1": invoice.user.address.street,
"city": invoice.user.address.city,
"country": invoice.user.address.get_country_display,
"address_country_code": invoice.user.address.country
}
form = PayPalPaymentsForm(initial=paypal_dict)
但是当我检查表单时,这些字段永远不会添加。我怎样才能让它们被添加?