Skip to content

Commit a88b949

Browse files
JayAshdaylisastreeter
authored andcommitted
Typo in Off-site (iFrame) payment gateways docs (#309)
There is a missing equals sign in one of the code examples ($form['#attached']['drupalSettings']['my_custom_module'] $data;)
1 parent a22d230 commit a88b949

File tree

1 file changed

+1
-1
lines changed
  • user/pages/03.commerce2/02.developer-guide/05.payments/06.create-payment-gateway/03.off-site-gateways/02.off-site-iframe

1 file changed

+1
-1
lines changed

user/pages/03.commerce2/02.developer-guide/05.payments/06.create-payment-gateway/03.off-site-gateways/02.off-site-iframe/docs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Once we've computed all the necessary *data* items, we'll attach them to the for
105105
$data = json_encode($data);
106106

107107
$form['#attached']['library'][] = 'my_payment_gateway/iframe_file_name';
108-
$form['#attached']['drupalSettings']['my_custom_module'] $data;
108+
$form['#attached']['drupalSettings']['my_custom_module'] = $data;
109109
```
110110

111111
Your `buildConfigurationForm()` method should also build whatever form you want your customers to see. This may include form elements such as a message, submit button, and cancel button. If you are unfamiliar with building forms in Drupal 8, the [Drupal 8 Form API reference] may be helpful.

0 commit comments

Comments
 (0)